{"_id":"@aappddeevv/graphql-codegen-scala","_rev":"3-c2aefe7126dc59bcdff833579b3e642a","name":"@aappddeevv/graphql-codegen-scala","dist-tags":{"latest":"0.1.4"},"versions":{"0.1.2":{"name":"@aappddeevv/graphql-codegen-scala","version":"0.1.2","main":"./dist/index","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"],"homepage":"https://github.com/aappddeevv/graphql-codgen-scala#readme","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","source-map-support":"^0.5.16"},"peerDependencies":{"graphql":"^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0"},"license":"MIT","gitHead":"700bcdcb44a99b178a1546631aefdbc9165e5aac","bugs":{"url":"https://github.com/aappddeevv/graphql-codegen-scala/issues"},"_id":"@aappddeevv/graphql-codegen-scala@0.1.2","_nodeVersion":"12.15.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-HKtbjh1qYYJ7HKzrxjoLq+yJmC2xYW4PNMx6KJynvGBK0J7psmNhXbDGB93oV9K71xcLEKyz7Xw93A3wQfyfjQ==","shasum":"ebbe8584aa794bbc5a21fbd1f5ba03be952ab335","tarball":"https://registry.npmjs.org/@aappddeevv/graphql-codegen-scala/-/graphql-codegen-scala-0.1.2.tgz","fileCount":55,"unpackedSize":161191,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeUrOICRA9TVsSAnZWagAAbKEP/0nKUbSYrM1vfH0iqBKJ\nB6YMkN2tcz4C29IMNRBtuX2qyXl7QNVDVJKdDHFZVsOqxNw8YjNfD8ywas6N\nux48QQxj7AfplB2+agEWRrNlzPtzHgPZhlrqsonxYx4/yjqW/g2Q6yQrU5Pu\nljNbrrXV4BafaMnlc6SK8WDKPsNEj32jGjOa5Gr2bjy7awU/ZfWlY9p2A04Z\nixdD9wuRYCZSm0pDwccXUooGQkbKCshm0vYUepiYBv1DCUIsyMk9PuEW3cLH\nVwYHO1WXdwR/ybGm+OSYT3jtlu3BzuTh+GMZ3XFpluo5LLyd5cZQG89yXgYO\nMvf9pQl6NSJ1a0Zl1+VVf7w5kC+OHelnp5mAhitDSNjireItDjKSdDVREV4Z\ngFUQ4RryvIBLpV4uZ6B44m9ibfMsET0JHn5ePZ1dHN/fF47fVmPyp3Z+OlQl\np4gQ8433wejF1MOy5RhO32StdYb+axwz1dO7RZEspggqw0bUae03Av5EfLV4\nTisaVWXpQpDN31F/EWR8HrC1XY1aR+cZNo/s4JIuOlEPV0cPGWPIrVnBvHzw\nKYIhgmp0qJq2XNsbo6bjBhv81inlN3VgZZBNoInFmxjI0fZN14tC5cM8aDuZ\n6xO8H3dHsBlY8ZgcGw7/uvfeinzMYLaxe1Rgy9w0skCQ2+K/K/2hRPsrCHFY\nHmAw\r\n=Ooic\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCviMHHyaEWpSI0IeuoR1Qc/8CynBWjQgoBNta3W+v3rgIgaYn19lQdz9ozGcKpBxh9BejmurV/qu5rzhdWj0jYn5c="}]},"maintainers":[{"name":"aappddeevv","email":"aappddeevv@gmail.com"}],"_npmUser":{"name":"aappddeevv","email":"aappddeevv@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-codegen-scala_0.1.2_1582478215724_0.4516478972090461"},"_hasShrinkwrap":false},"0.1.3":{"name":"@aappddeevv/graphql-codegen-scala","version":"0.1.3","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"],"homepage":"https://github.com/aappddeevv/graphql-codegen-scala#readme","description":"Generate scala/scala.js files from graphql schema and operations. Initial focus is on the client.","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/plugin-helpers":"1.12.2","@graphql-codegen/visitor-plugin-common":"^1.12.2","debug":"^4.1.1"},"license":"MIT","peerDependencies":{"graphql":"^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0"},"bugs":{"url":"https://github.com/aappddeevv/graphql-codegen-reason/issues"},"gitHead":"8c06c94999b78037c637edeb7dd79cd371c36d77","_id":"@aappddeevv/graphql-codegen-scala@0.1.3","_nodeVersion":"12.15.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-/IVkieO+OIor8/GOUZVtPUPdIjqg/8Nlrzqn2SgP+feUCteSwGF2UFUN7FM07pOwr/m5JEdtGH526Pvcd0r8eA==","shasum":"7cf1682cbb60676c2f2364b1341cfe688c5dd7be","tarball":"https://registry.npmjs.org/@aappddeevv/graphql-codegen-scala/-/graphql-codegen-scala-0.1.3.tgz","fileCount":48,"unpackedSize":139681,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeUvAtCRA9TVsSAnZWagAAqaUP/i9yDcCurUjvwZR2dKFB\nYOex1wXihFIDuAC/VN9HHh5fZdwaK54mJTs2mTUI4drWgfrPaSepJSBq9tkk\n6omBQTW969lwd+T6sVILewNiJGIW5J6asX/8NzyJDOBEjnzBRZ8Ut2LwQ1EO\nEzom15gVjXQZuY5kQeZ8sUb8cM1FkYrrJfOx+B73piAoty1mgTeKVbD0BIrO\nnjgkOmh+wNUt1MEGVYks5ClgbSpUcpq+uCDgcJmpc4Yuw+hYdCLA2a4PZcOT\nXMfPCVf67qMedVqlQj7PFA/KiCLTj5+ou8gniwykeTwuSd3flUM5D5e4KMjJ\net4RKI03l5CV/MyOrdP9SAwnGptsT00khzaKys0au/YErgAMOHEz2fhLaqWN\ndFtnoksVJ6MgVAC2qFDjFKMXMI4uP6ancwOw9pr0aVipyOfqM56kRfG1BUUM\nKDMWG/2QBS7e/P15FNkBx7taWx69IBjx/qM/Y6tRxFqHqRXWZHlXshcqx8a/\nZxzhUrBUTj81YfypO9FFWWtrMMQEgcSWD52Z6va5S09+k2Zc3oMO+kUoMOQg\nbAUxbRlc19aOpKHzICyj7rck14pUVUltZdLrKc/KobyA0OULAvB7i+fLUw0H\nxIJWBgxRdyVakLdr0ksSq9PTk6+oyitz0WJsYvGtS2MqK/gUAZ7OSlA54MKi\nptO/\r\n=+YoK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICnm/tbySdOXW+ZSOmEJHjt1HTQfmdorqTyyvKQwtQvhAiEA1AuIgPj+29/wSuO4E5ZJfcT6r6n9UwxTZxwm/eX68KA="}]},"maintainers":[{"name":"aappddeevv","email":"aappddeevv@gmail.com"}],"_npmUser":{"name":"aappddeevv","email":"aappddeevv@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-codegen-scala_0.1.3_1582493740553_0.8334703504917853"},"_hasShrinkwrap":false},"0.1.4":{"name":"@aappddeevv/graphql-codegen-scala","version":"0.1.4","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"],"homepage":"https://github.com/aappddeevv/graphql-codegen-scala#readme","description":"Generate scala/scala.js files from graphql schema and operations. Initial focus is on the client.","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/plugin-helpers":"1.12.2","@graphql-codegen/visitor-plugin-common":"^1.12.2","debug":"^4.1.1"},"license":"MIT","peerDependencies":{"graphql":"^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0"},"bugs":{"url":"https://github.com/aappddeevv/graphql-codegen-reason/issues"},"gitHead":"8c06c94999b78037c637edeb7dd79cd371c36d77","_id":"@aappddeevv/graphql-codegen-scala@0.1.4","_nodeVersion":"12.15.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-3yzLtR3JwGkL5DTTBED+XETJl1XiB5tbjEwlggejjU1sexbCuMggcm8vxyMbQeIYhRSDNuJCGRqjpXfSKc6Auw==","shasum":"36117eaa9f0f93e4cb36153be3e56212a2e5cd31","tarball":"https://registry.npmjs.org/@aappddeevv/graphql-codegen-scala/-/graphql-codegen-scala-0.1.4.tgz","fileCount":48,"unpackedSize":139681,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeUvBwCRA9TVsSAnZWagAAoUkP/1zmpwkvgR+z6o8YvIWW\nz9ll+9KcQ7LA454yTiUGYPjRF9ReLISr/Ntzk7pu0pEZxvWF3WVM7lx9vz9W\nYMZ6t4bHsJEoc4aPi09VEi6I32ZyaQ71hNiczuSciZ+nyLpxLU1hEQTjcTvv\nU/MD6pfSuWgRwpwdEIXv4s5Z2Rns4Xmq6b6OrPCjkh09C5LTkKs7Efa+tOjp\nwup922EkTVO/sSWIRi0G+RhdW9KiZS3yJVoiZkfDxw0xrfyrhZ84RlRLM5iW\nYDV24XaJ1jTgMrKcCaSne3tmYzHrf0FPrGcy5qCL7Zqsq87Mu7f/gxXceN49\nBE00cEzZ/KKtgWUEg/Dv6c6OpFJKdz7A1ogSPImUXc4V8jOtkxUgm0GecBlK\nxSEwsO9OoQpG0wSfRy+UxSzQzsGJgHje+pN4D8Quc1uAt0g8aNcTl2W1mKX9\nNk7R7y7ZuQ96XUaefJLJRPJG+Hvbg9Imz7Tta0muZmFrWdztVnhl9DH9cxr0\nGoPzeXp+LBdR9sQlH8OE4qc5eVJjXc/UbK6K+P+482oK1ourt2b+wDpnRnpw\nkjkGcdO7H6ujXQ1q7W7QBe4j0rlk35Xsbqj4Ic+vYjGCWKG+MyiaSeK7g3gU\ntc3x++Pl8QiQWWmzS0Xsiw7PhUuh9OVi1LMcgDsAeOgnh0+4R1BuvXuISpMo\n/7d8\r\n=+3mE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICev2ZJX1IkPAspIqj4c0Vi91EUujRu+WYdx5nb7TAIaAiBUYP6463YLLnvGDgTvhd/WXCWscnIiAHXQJfZCowMWbA=="}]},"maintainers":[{"name":"aappddeevv","email":"aappddeevv@gmail.com"}],"_npmUser":{"name":"aappddeevv","email":"aappddeevv@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-codegen-scala_0.1.4_1582493808213_0.0010549700739421741"},"_hasShrinkwrap":false}},"time":{"created":"2020-02-23T17:16:55.684Z","0.1.2":"2020-02-23T17:16:55.860Z","modified":"2022-04-04T10:55:21.392Z","0.1.3":"2020-02-23T21:35:40.655Z","0.1.4":"2020-02-23T21:36:48.358Z"},"maintainers":[{"name":"aappddeevv","email":"aappddeevv@gmail.com"}],"description":"Generate scala/scala.js files from graphql schema and operations. Initial focus is on the client.","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-reason/issues"},"license":"MIT","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 @graphql-codegen/cli @graphql-codegen/add\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      - @aappddeevv/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     // optional: watch the codegen config file itself\n     watchSources += baseDirectory.value / \"codegen.yml\",\n     codegenCommand := mycommand,\n     // In this case, you could also add the schema.json file since the codegen config is independent\n     // of the scala config.\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\nYou can use sbt to trigger a re-run or use the watch flag on @graphql-codegen.\n\n# Evolution\n\nThe codegen plugin does not handle all graphql constructs and is in a state of\nflux while it adds more graphql capabilities.\n","readmeFilename":"README.md"}