{"name":"@gatsbyjs/relay-compiler","description":"A compiler tool for building GraphQL-driven applications.","version":"2.0.0-printer-fix","keywords":["graphql","relay"],"license":"MIT","homepage":"https://facebook.github.io/relay/","bugs":{"url":"https://github.com/facebook/relay/issues"},"repository":{"type":"git","url":"git+https://github.com/facebook/relay.git"},"main":"RelayCompilerPublic","bin":{"relay-compiler":"bin/relay-compiler"},"dependencies":{"@babel/generator":"^7.0.0","@babel/parser":"^7.0.0","@babel/polyfill":"^7.0.0","@babel/runtime":"^7.0.0","@babel/traverse":"^7.0.0","@babel/types":"^7.0.0","babel-preset-fbjs":"^3.1.2","chalk":"^2.4.1","fast-glob":"^2.2.2","fb-watchman":"^2.0.0","fbjs":"^1.0.0","immutable":"~3.7.6","nullthrows":"^1.1.0","relay-runtime":"2.0.0","signedsource":"^1.0.0","yargs":"^9.0.0"},"peerDependencies":{"graphql":"^14.1.0"},"_id":"@gatsbyjs/relay-compiler@2.0.0-printer-fix","_npmVersion":"6.1.0","_nodeVersion":"10.6.0","_npmUser":{"name":"freiksenet","email":"freiksenet@gmail.com"},"dist":{"integrity":"sha512-oxUgELwerXuQWQhQz+G3xXAP9H4uMgj8aNGmNp0IYKv9D0puvUw+W6884jae57Ng+Vj2K5rxUkn0ApivSTvutQ==","shasum":"542b3eb8e7f28142ccbde051dfc47c6ce506d022","tarball":"http://registry-npm.ywwl.com/@gatsbyjs/relay-compiler/download/@gatsbyjs/relay-compiler-2.0.0-printer-fix.tgz","fileCount":94,"unpackedSize":2773781,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcZUu0CRA9TVsSAnZWagAAsecP/i0aZSMVnKWITsA2uGLn\nJA/Vja0hWrclPezDFgE+qAdQfK/h2u2qBWYgpDblo5uZof8atSezJYnjAXsE\n08NBaD7vSXKqZoM8ExqJQLTm12TN0PmwK78BKG7VMSa0FSjP5jM+Upsysy6r\nM9ere5vvlmK4ZxLcBPjMdJ88GRBgnDESO/Rq3CkDbs7uuwiUM+cDzjSd841v\ndczLnsiPprWKppEPjU69xRuT8gO4n88OoSJZfIdaKAKuNH15jMmfyswaUycM\npqIS+/P+02t0DvkX46QOTc8Ba/xA5FBTDfEbnaRC6VfZEbH03EpoFwxd5pBX\nutBrs1xpLuOWjsL09cPaFY1VwTcKcoRqeibF1odkLZ4nV9Im1oFv2uXiIob2\nJYDkOttaKlfeBW0TuELvdx47lHl7biSJF+BGJ2+1PPHsP7lGXGE0wig6kZK9\n/P9BwOvooHvyQ9lQLZu9uLPL4cDObSXVXKSYHGKMIzqunf27sTLyJLPCBr3k\n1LMP+fQdAbfpC4JUhmMO1cmW4kqGCZeLH49RuKrGFeg3iDM66nLR7jcHOIet\nB+mS6/2JWV2LxtWY2QXvUNj/+F7agR7Cq1x588wKvwLyNZ1ItZ9g/R2uuoOj\ndsrQ7Jy8h6UzlbsBHvUb3pwf7EPdCh/I16OyW1ssX2b7BjRKNnjwVqLGkjlK\nhhgT\r\n=d/0A\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDUV3EQVfc6vCf7m3Y8jwsnwPgPIw4izgtl5ec6FzHr1gIgPeS3k+yNcbOCXHL4QDkN9pkE21QfdneMWYkyV/FSoFU="}],"size":551112,"noattachment":false,"key":"/@gatsbyjs/relay-compiler/-/@gatsbyjs/relay-compiler-2.0.0-printer-fix.tgz"},"maintainers":[{"name":"freiksenet","email":"freiksenet@gmail.com"},{"name":"kylemathews","email":"mathews.kyle@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/relay-compiler_2.0.0-printer-fix_1550142387373_0.078557634948341"},"_hasShrinkwrap":false,"readme":"# Relay Compiler\n\nRelay-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.\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/relay-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","publish_time":1550142387581,"_cnpm_publish_time":1550142387581,"dist-tags":{"latest":"2.0.0-printer-fix.4"}}