{"dist":{"shasum":"3b311615a016cc8b871dca19fc2b4ae78b2d1de5","tarball":"https://registry.npmjs.org/graphql-compiler/-/graphql-compiler-1.5.0.tgz","fileCount":47,"integrity":"sha512-nr2DwpcVtNCbAaE2KWyNpgf1jSFj0hbANZAovl4XYeu+i96etFuG6v0/DGapvjkN0BtZdekqob8z1kcD4YEbFg==","signatures":[{"sig":"MEQCIGi6ftzdIfP2Pgs5e8H/S7+pwc/5PayF6cT4i5AvjtKfAiAa99HQGuWnLys1UclAVo3ZW56tW3P8duQzD0k8d8tBxw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"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"},"main":"GraphQLCompilerPublic.js","name":"graphql-compiler","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","license":"MIT","_npmUser":{"name":"jstejada","email":"juans.tejada@gmail.com"},"_npmVersion":"5.5.1","description":"A Code-generation toolkit for GraphQL","directories":{},"maintainers":[{"name":"fb","email":"opensource+npm@fb.com"},{"name":"jstejada","email":"juans.tejada@gmail.com"},{"name":"kassens","email":"jkassens@fb.com"}],"_nodeVersion":"8.9.3","dependencies":{"chalk":"^1.1.1","immutable":"~3.7.6","fb-watchman":"^2.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"graphql":"^0.12.0 || ^0.13.0"},"_npmOperationalInternal":{"tmp":"tmp/graphql-compiler_1.5.0_1524776720620_0.599176770618123","host":"s3://npm-registry-packages"},"_id":"graphql-compiler@1.5.0","version":"1.5.0"}