{"name":"graphql-compiler","version":"1.5.0","license":"MIT","description":"A Code-generation toolkit for GraphQL","main":"GraphQLCompilerPublic.js","dependencies":{"chalk":"^1.1.1","fb-watchman":"^2.0.0","immutable":"~3.7.6"},"peerDependencies":{"graphql":"^0.12.0 || ^0.13.0"},"readme":"# GraphQL-Compiler\n\nGraphQL-Compiler is a code-generation toolkit for GraphQL. It contains the core functionalities of GraphQL code-gen, including file parsing, validation, syntax tree parsing and transformation. The intended audience are developers wanting to use components of GraphQL-Compiler to build their own GraphQL code-gen pipelines.\n\nThe GraphQL-Compiler package [exports library code](./GraphQLCompilerPublic.js) which you may use to find the modules you need, or to extend the compiler with your own custom input and output. Note, the internal APIs of the GraphQL-Compiler are under constant iteration, so rolling your own version may lead to incompatibilities with future releases.\n\nThe following graph illustrates the high-level architecture of a complete GraphQL code-generation pipeline:\n\n![CodegenPipeline](https://github.com/facebook/relay/raw/master/packages/graphql-compiler/docs/Architecture.png)\n\nTo understand the underlying workflow of the core compilation step, which is what happens in the \"GraphQL Compiler\" block in the above graph, please refer [HERE](./ARCHITECTURE.md).\n\nYou can build your own version of the Compiler by adding your own `FileWriter`, and by swapping or adding a `FileParser` and additional `IRTransforms` (IR, which stands for `Intermediate Representation`, a special-purpose syntax tree format designed for transformability).\n\n* The GraphQL-Compiler package provides a [`GraphQLFileParser`](./core/GraphQLFileParser.js), which can be used to parse general `.graphql` files, and a [`GraphQLTextParser`](./core/GraphQLTextParser.js), which can be used to parse GraphQL text in any source files with customized tags. You can also write your own `FileParser` at your discretion.\n\n* You can add additional `IRTransforms` by extending the basic [`GraphQLIRTransforms`](./core/GraphQLIRTransforms.js). A sample can be found [HERE](../core/RelayIRTransforms.js).\n\n* Similarly, you can add additional validation rules by extending the basic [`GraphQLValidator`](./core/GraphQLValidator.js).\nSample [HERE](../core/RelayValidator.js).\n\n* A sample `FileWriter` can be found [HERE](../codegen/RelayFileWriter.js).\n\nTo actually run your compiler, you will also need a script to assemble all the above components. A sample file can be found [HERE](../bin/RelayCompilerBin.js).\n","readmeFilename":"README.md","_id":"graphql-compiler@1.5.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"jstejada","email":"juans.tejada@gmail.com"},"dist":{"integrity":"sha512-nr2DwpcVtNCbAaE2KWyNpgf1jSFj0hbANZAovl4XYeu+i96etFuG6v0/DGapvjkN0BtZdekqob8z1kcD4YEbFg==","shasum":"3b311615a016cc8b871dca19fc2b4ae78b2d1de5","tarball":"http://registry-npm.ywwl.com/graphql-compiler/download/graphql-compiler-1.5.0.tgz","fileCount":47,"unpackedSize":482104,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa4j8RCRA9TVsSAnZWagAAMR0QAICk3vfUhfSNt+kpXzPz\nHlDYDmc9eFzaAi+ICvbFfr1nxdYenLppCItElR5p3/lSVVjcfCd1lcN083Bu\nTW5wiBOf21hNhufKJlRTGhD1YjcHrzCzfTmQ69R1CgXpE4eQyoIXvzFEdPIi\ncyncZr0s/ts9XwItRCksH9EJCrRpNNXxMOkCuMT6Uz3LM8BM1U+6XEaNOm+s\nYagjRxTEs68wLnNzVodK1g3cAdVRwLp3tQ/mvm951CAMA9HFHG/VbCfM33A9\neNcME4XY2EkQh3+OVcNdeIoZCo57CLdK8qBaG6oRCAK+aDQFyiHtHNcIGIGE\ni+87SS1F6pXPdHwx3M6y48GSiDSKrnWJbozY5xVea/pkysLo1XFDm+PzAc8R\n4Usxlksiy1hJgnJKEUhI1XfiUnPWKOH719ypKdeC2gjIhJZ62MzzciGpO93I\nkW6g2++oJDPgcaTg1ou0h1bSgb7zixMw3AGW9QN+FMZc0R9JjD94QZkbpXdF\nwaaR2el+oClpOvUbFvhJeJxXyoG7eYjs5heTjVhb2yCN+bsZsR9c4LpR9A/6\n91IELjEyw6KYLF0EPT1++00lFNSR1FDuFXveeBrn1QSI08+ojSIMB+D0QXK9\nWflN6eo5yAlnnCsAgHJvqkET72W/i+KqU57QmNXsvU7lIsHw4BevlpbCiIUx\nEipb\r\n=HpZz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGi6ftzdIfP2Pgs5e8H/S7+pwc/5PayF6cT4i5AvjtKfAiAa99HQGuWnLys1UclAVo3ZW56tW3P8duQzD0k8d8tBxw=="}],"size":315320,"noattachment":false,"key":"/graphql-compiler/-/graphql-compiler-1.5.0.tgz"},"maintainers":[{"email":"opensource+npm@fb.com","name":"fb"},{"email":"juans.tejada@gmail.com","name":"jstejada"},{"email":"jkassens@fb.com","name":"kassens"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-compiler_1.5.0_1524776720620_0.599176770618123"},"_hasShrinkwrap":false,"publish_time":1524776720767,"_cnpm_publish_time":1524776720767,"dist-tags":{"dev":"2.0.0-rc.1","latest":"1.7.0","publish-test":"1.6.2"}}