{"dist":{"shasum":"46eb9cbbe2f9fac8ddde4a997456b7b3203f8151","tarball":"https://registry.npmjs.org/graphql-compiler/-/graphql-compiler-2.0.0-rc.1.tgz","fileCount":46,"integrity":"sha512-m2P8yFIf/xwbGJYrXM6w0VskXpew2sW1ChjAEnVGmQdmoASSSVJnPwP0QPVg/Hl66/SQBHKNqA+YSWGM2FveYw==","signatures":[{"sig":"MEQCIC4SRaNG7aky/TxyBLoDi9goUoziO61JxIhOZozbXS0dAiA4ZPREwPYwoL9apbl24Ef88NY/WDzBxKXgoPX+1Fz79Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":289030,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb2doVCRA9TVsSAnZWagAA+jEQAJwz5Uc6DC4laNa5K8ei\n91XDihF7L+aicHxIvv+aDdxT+EReL1YWwTB2UWa/tGO9YTZHFn8S1tMyGpoo\nJ0LzNdsluCdiaPhp2CMin2Ao9M8Pdugu3zOztk9Z1nvIfJjS7CemUOaVXOjW\nLrp1b4JsHYFnEKo7odOBy5GZFCcIGEUtCQI6YkdqRkd+8H9/fpKPiUjKHjMY\nEriobPot33VmCG1D9+yOsXPLlF/eCj2LFs3u1zU6lYJpxHHRS+BT3q5Wrvd9\niIBQLy84HOdm3Gcn5eP4WHl0AKv+SUEQmKPnZ15OS9lwGz3ASrcB8f+hCxk4\nEe9dOPyCAgi3XVKC8tB87bEEZAQFt39lxyqDZRMDrZZ3qZXlguoloCJiZPuv\nqLAUJFErEA5eozeOXJX74EUBV9eQcFBGrfGu3pbe5IWBz/u6OFKyY467X1S/\nMcQSn0ZmVPLP442AKMf+b1js/bCfwb7W9N44GtyUtfMLCmPpJsHXTJ6OWCki\nOlwIpvY2bZcs3A2UTxgTszS7ruXRZiqfOPwe0V1upxAAry9I+WNolABsJv9U\nCS62fzjdgoiIGaxdyYDzfGT1kig4p9p4qUpuc1Xg+y4HJL5uNRFMC8xfQUnt\npa/V8N6dFwvnXmMEF4piVp1/pAWEdL7w3r5uzbbL0rVOTMiB7C1SfL5faaG8\ny8Cd\r\n=dRra\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":"6.4.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.12.0","dependencies":{"chalk":"^1.1.1","immutable":"~3.7.6","fb-watchman":"^2.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"graphql":"^14.0.0"},"_npmOperationalInternal":{"tmp":"tmp/graphql-compiler_2.0.0-rc.1_1541003797120_0.13831105094874263","host":"s3://npm-registry-packages"},"_id":"graphql-compiler@2.0.0-rc.1","version":"2.0.0-rc.1"}