{"dist":{"shasum":"1b319afacc4852301327d2c6798a55a4f546274e","tarball":"https://registry.npmjs.org/graphql-compiler/-/graphql-compiler-1.7.0-rc.1.tgz","fileCount":47,"integrity":"sha512-wu1HMcI39I2Ion1N+nrn9ELGMFGi6lFDz+dJuJwnlO3BdXTrSVvYnnusxNaim4/Gkmf9tM/ErYSbpvRzBWPk3g==","signatures":[{"sig":"MEUCIGMYpybkd8NaWM4dux6JNOzgllmhVhC/jvBsSt5PrQy2AiEAtPbqVYtTBo1PRynN6ydGtWXmaOaii1ZQWp+eIhb+hXg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":516347,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbdRNUCRA9TVsSAnZWagAAL+MP/2aezsi7/OskAg3n/BPt\naJJmEVQyJPgIqS7BvLUY99H9oxWtihwViqkhFsM6bkcPOU5SfcdlDj3N3yvM\n1LIwhBaGxesxKK9dvVSmlEbGFbv0GFciT/oCW6qeLSEiJi8ILSOftXQJU8a6\nSLWBOH9H5Os/BMFTNMRWnQYdMV97ChBD70EOQydnFbgSdyCAHFaMxIDrZsJQ\nKkIqAs/rbKx0Plnbnrpq9LKLa1hovyorfEiAdH7Vf+djYQdXYuyEkmPdnfWu\ng5aMMzF6asIjUujJHC5z6J1NAvlm9hToXbFbxES7yH8DbYIZ4zbNi4TT9ltx\nTVtUct2DYpxeVJj9mY/FNG+EpHu9yX3R08GAh13FR8KAnpyrACbjvoeD9rFO\nSUGRU2irq3nFb+i4cUHD3ozmaTR5xcOTm4PovpwEQX3/caaEVzKceO0g3HHi\ncp/RFYsN3FLzlW3LsEhlR9eF+XZB8wSr4s06Bg70R/I95uzBvurx10BYmZSa\nxbqUWOy5UcV5YDok3zAJ/eDhDrnVFbR9L+WmbkMVJ3rtdrlUw6rxIFP2pF/x\n4ZUUUSETecbntGcIlw1tIWQes99t17Me1mvud18eAdNYpqHfpEZGxWlKqi/x\nsO9KjNbVTnp0/53bVQmkSJtJVsjsa4cSmdQGg6ovlnNoWD+ZjuQpmjIk3eDr\nIp4n\r\n=r+l/\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":"kassens","email":"jkassens@fb.com"},"_npmVersion":"5.6.0","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.11.4","dependencies":{"chalk":"^1.1.1","immutable":"~3.7.6","fb-watchman":"^2.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"graphql":"^0.13.0"},"_npmOperationalInternal":{"tmp":"tmp/graphql-compiler_1.7.0-rc.1_1534399316171_0.38772153534486775","host":"s3://npm-registry-packages"},"_id":"graphql-compiler@1.7.0-rc.1","version":"1.7.0-rc.1"}