{"_id":"@aappddeevv/graphql-codgen-scala","_rev":"2-868613d034c4482d6f7f931cc1d06a47","name":"@aappddeevv/graphql-codgen-scala","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@aappddeevv/graphql-codgen-scala","version":"0.1.0","main":"dist/index.js","scripts":{"dev:watch":"tsc -watch","dev":"tsc","build":"tsc -p","publish":"npm publish --access public","dryrun":"npm publish --access public --dryrun"},"author":{"name":"aappddeevv"},"keyword":["scala.js","graphql","scala","scala.js","codegen"],"description":"Generate scala/scala.js files from graphql schema and operations.","repository":{"type":"git","url":"git://github.com/aappddeevv/graphql-codegen-scala.git"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"bugs":{"url":"https://github.com/aappddeevv/graphql-codegen-scala/issues"},"homepage":"https://github.com/aappddeevv/graphql-codegen-scala#readme","_id":"@aappddeevv/graphql-codgen-scala@0.1.0","_nodeVersion":"12.15.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-gqNd0bTDmNC0swdppvla7NOudWN7qR9W5uqk1nVZDtBeFCzaFAioHhWiSVb4AZzIr+CwyDhzw7Ne5M3X3ttE6Q==","shasum":"45dcde2031f0511d85106815221fcb357e181a5b","tarball":"https://registry.npmjs.org/@aappddeevv/graphql-codgen-scala/-/graphql-codgen-scala-0.1.0.tgz","fileCount":16,"unpackedSize":52543,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeUnmWCRA9TVsSAnZWagAAmMkQAKOpIPXogRY4XKSH2A3y\nknvS4rYHqDmNjo9LdecjR0NdWFpGVSMtE+DGBGjLgkzwCRdrj4evKgnATp4v\nM3Vg34XVdVhJZc1enkx2YEXpakkL+/mlLGpGPjSLKQ71nNCtOi5dat7bDMBR\ni1D2NDuFPnGa7BObntcz444b6Rhr1OaCgCDy3sD+XmD9hqL9WjPb7VW/BVN8\nZz1OJcqgv+GRrfixv4qtJ+7g0FVFIRuP5SLzBAyS6xV9zMW5C4br6UPi/um1\nQ8x6VhROfya0q/RoEOpd7T7JlWu/J/JQ0/2LWvJMYaKtOxKpxHvN9xmXfv2J\ndSoBv/b+OHafguNybjcmrk9j5oOPgjNiZufNrA4rvuaJyZzSif3li3IgrXQZ\nolEBwCWdd9pA68a9tZr69HTdC38KfmuqfSYPc7j/YQoCDp3mTGkHaLklsnMa\nKQU4gllwCeEPd9b6C5SbWa7Qlz1KxE/GfZvzakUqUVnyv7CMpLVw7ZWqB6dZ\nQ7vk67G/3Zb0gjACcz0r+AjXwfabOhuVJKxTrKFL7IMNQM/mnGgo6xVlqvH3\nWq44DT2hT0obQWO2VH35t+IVpm56+XgbiSU8U1QQj6l6LLgUvhQ+fckWvo1P\nDWnXMbUrCAq9Qvk6GenPBQ2b4/ueU/FZPv3L247tsny+DTLDzLaGYilxUYtV\ncYzm\r\n=oLmW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFf6CVhzNiB7hlZT2xZPk9WjVwEro54hyXBMBWmgnyIvAiAQwQss+aE2M107JV1Io3GL9RzUgHSPqdP/CyqeGdj09Q=="}]},"maintainers":[{"name":"aappddeevv","email":"aappddeevv@gmail.com"}],"_npmUser":{"name":"aappddeevv","email":"aappddeevv@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-codgen-scala_0.1.0_1582463381905_0.2642171998744349"},"_hasShrinkwrap":false},"0.1.1":{"name":"@aappddeevv/graphql-codgen-scala","version":"0.1.1","main":"dist/index.js","scripts":{"dev:watch":"tsc -watch","dev":"npx tsc","build":"npx tsc","publish":"npm run build && npm publish --access public","dryrun":"npm run build && npm publish --access public --dry-run"},"author":{"name":"aappddeevv"},"keyword":["scala.js","graphql","scala","scala.js","codegen"],"description":"Generate scala/scala.js files from graphql schema and operations.","repository":{"type":"git","url":"git://github.com/aappddeevv/graphql-codegen-scala.git"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"devDependencies":{"typescript":"^3.8.1-rc"},"dependencies":{"@graphql-codegen/visitor-plugin-common":"^1.12.2","debug":"^4.1.1","graphql":"^14.6.0"},"bugs":{"url":"https://github.com/aappddeevv/graphql-codegen-scala/issues"},"homepage":"https://github.com/aappddeevv/graphql-codegen-scala#readme","_id":"@aappddeevv/graphql-codgen-scala@0.1.1","_nodeVersion":"12.15.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-o8Af8DvjOfulgVhLXizUfWQ6hfyBTcUa+9Hm3D1heMTOrJLyKA31PE6LuZ8PVnIjiDgffDhru41VsVJqepf5iw==","shasum":"9bf5f57c29e54ef5d83eafa8af558e5e530863bf","tarball":"https://registry.npmjs.org/@aappddeevv/graphql-codgen-scala/-/graphql-codgen-scala-0.1.1.tgz","fileCount":55,"unpackedSize":160166,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeUoQ6CRA9TVsSAnZWagAAyLgQAJFptwqgWdnL+eZ8tU/D\nwQInDpCugY5oq4wbZhX/f6KmY0wQQi8PJH0RrzhJyYiqGhEXWMtS9AWRiXVd\n1Y236MIHCvGsYHgnC4rLm8ATJSp1lLRsj5sXh57atag5MG9hQk1I/9jO/6EK\nR4jAnOEjD3j/opC5KdZRL15a5vG7ZG0fqgCo19cp0sOw0HdDKBxPE9Wk+M1Z\nTdVgBd4kCynNG55lOnnukUm04AeE/ffLXN0ehatlubQ8EF2IxZEImtOCoQRT\nMgqFBmisXZLvPDBau6Ei0eJNtfHtvR5S1vNKTAlkefE22zXHBQEg/iDhv3Ya\nw7oWbRFtSJ4nuwRradj8Ib58t4r6+8UQMhG9Ybfg2IryZ9lZwPaCDGOIZcN8\nSOKQrTtuercY822wD3Vrar284ahW4y1grgfrjEDprPECXc9T+n1DPCBct/Zc\nHe2HSQhL6oI2eszXSXzGmhJ2ZuEbYjLplCdrR1rmdDCwd8loyz4gPqJt01Ou\ntcn3uJiwZh7z6HSvpS0lJjvXqNMmYkm4SNtHgaNqYwtjETcnJF69qg7Mu/5n\nabjbA56Ocfagglk790as2pdZx+eBoWa9kwH65i3bpxFEwhq1yj6w06xQdy+U\n6dewGGElXFd7WGEvHnI4WvDlH4NfWt9JHUtBx7+m5rmjhVNbZWYYnq1gn6WJ\n2jKV\r\n=bNK1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCRuciITlp2NxipagB56bfoj5L24DhKM6nASF6W1806HAIhAJ/iDDBPGBvOr1W8Z7AUj5KYi42Ujjet2ehQSrZ1YXnT"}]},"maintainers":[{"name":"aappddeevv","email":"aappddeevv@gmail.com"}],"_npmUser":{"name":"aappddeevv","email":"aappddeevv@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-codgen-scala_0.1.1_1582466105784_0.7443168236050115"},"_hasShrinkwrap":false}},"time":{"created":"2020-02-23T13:09:41.875Z","0.1.0":"2020-02-23T13:09:42.060Z","modified":"2022-04-04T10:55:21.506Z","0.1.1":"2020-02-23T13:55:05.904Z"},"maintainers":[{"name":"aappddeevv","email":"aappddeevv@gmail.com"}],"description":"Generate scala/scala.js files from graphql schema and operations.","homepage":"https://github.com/aappddeevv/graphql-codegen-scala#readme","repository":{"type":"git","url":"git://github.com/aappddeevv/graphql-codegen-scala.git"},"author":{"name":"aappddeevv"},"bugs":{"url":"https://github.com/aappddeevv/graphql-codegen-scala/issues"},"readme":"# graphql-codegen-scala\n\nA scala code generator for the @graphql-codegen toolchain.\n\nDevelopment of code generators seems to have shifted from the\nbase apollo tools to this plugin. @graphql-codgen uses the\nconcept of plugins to allow you to layer on different codegen\ntasks to achieve the desired output.\n\nThis codegen is currently focused on generating code for\nscala.js frontends.\n\n```sh\nnpm i -D @aappddeevv/graphql-codegen-scala\n```\n\nYou should use the other @graphql-codgen plugins to achieve\nthe desired output package:\n\n```yml\n# yml configuration\nschema: \"schema.json\" //generated separately from server\ndocuments: \"awesome_sub_project/src/main/graphql/*.graphql\ngenerates:\n  awesome_sub_project/target/scala-2.13/src_managed/main/cli_codegen/graphql.scala\n    plugins:\n      - graphql-codgen-scala\n      - add: \"// DO NOT EDIT\"\n      - add: \"package awesome\"\n    config:\n      gqlImport: \"apollo_boost._#gql \n    hooks:\n      afterOneFileWrite:\n        - scalafmt\n````\n\nYou only need the scalafmt hook if you want to read clean sources.\nSkipping gqlImport means that the documents are not inlined into\nthe operation objects. `apollo_boost` is scala.js published package\nthat has a `gql` function that takes a string and produces a\ngraphql `DocumentNode` via the graphql packages written in \njavascript and facaded by the `apollo_boost` scala.js facade.\n\nYou do not have to hardcode the output path, you could pass \noutput information from sbt into the \"run\" script.\n\n# sbt\n\nYou will want to generate your sources directly into\nthe src_generated directory of your project and then\nensure that the contents are watched. You can have this codegen\nautomatically triggered by using the `sbt-cli-codgen`\nplugin and simply configuring it to run when the sources \nchange.\n\nInstall the `sbt-cli-codgen` plugin into project/plugins.sbt, then:\n\n```\n// build.sbt\nmycommand = (files: Seq[String]) => (Seq(\"npx\", \"graphql-codegen\"), Seq(\"graphql.scala\"))\nlazy val proja = project.in(file(\"proja\"))\n  .enablePlugins(CLICodgenPlugin)\n  .settings(\n     codegenCommand := mycommand,\n     codegenInputSources := Seq(sourceDirectory.value.toGlob / \"proja/src/main/graphql/*.graphql\")\n  )\n```\n\nThe above config assumes a few sbt-cli-codegen defaults. `mycommand` formulates the\ncommand to be run and the output file. If you need to insert content from sbt into\nthe yaml config file, you could perform a side-effect inside the function.\n","readmeFilename":"README.md"}