{"_id":"@gatsbyjs/relay-compiler","_rev":"293600","name":"@gatsbyjs/relay-compiler","description":"A compiler tool for building GraphQL-driven applications.","dist-tags":{"latest":"2.0.0-printer-fix.4"},"maintainers":[{"name":"gatsby_integrations","email":""},{"name":"kathmbeck","email":""},{"name":"mlgualtieri-gatsby","email":""},{"name":"pieh","email":""},{"name":"seanroberts","email":""},{"name":"serhalp-netlify","email":""}],"time":{"modified":"2021-06-03T18:54:20.000Z","created":"2019-02-14T11:06:27.581Z","2.0.0-printer-fix.4":"2019-08-23T11:27:31.007Z","2.0.0-printer-fix.3":"2019-08-23T08:40:17.571Z","2.0.0-printer-fix.2":"2019-02-14T13:19:09.410Z","2.0.0-printer-fix":"2019-02-14T11:06:27.581Z"},"users":{},"repository":{"type":"git","url":"https://github.com/facebook/relay.git"},"versions":{"2.0.0-printer-fix.4":{"name":"@gatsbyjs/relay-compiler","description":"A compiler tool for building GraphQL-driven applications.","version":"2.0.0-printer-fix.4","keywords":["graphql","relay"],"license":"MIT","homepage":"https://facebook.github.io/relay/","bugs":{"url":"https://github.com/facebook/relay/issues"},"repository":{"type":"git","url":"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"},"licenseText":"MIT License\n\nCopyright (c) Facebook, Inc. and its affiliates.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@gatsbyjs/relay-compiler@2.0.0-printer-fix.4","dist":{"shasum":"4b06aeb4f2ceea5878b5832a2ced1bff9abb62bd","size":551466,"noattachment":false,"key":"/@gatsbyjs/relay-compiler/-/@gatsbyjs/relay-compiler-2.0.0-printer-fix.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@gatsbyjs/relay-compiler/download/@gatsbyjs/relay-compiler-2.0.0-printer-fix.4.tgz"},"maintainers":[{"name":"gatsby_integrations","email":""},{"name":"kathmbeck","email":""},{"name":"mlgualtieri-gatsby","email":""},{"name":"pieh","email":""},{"name":"seanroberts","email":""},{"name":"serhalp-netlify","email":""}],"_npmUser":{"name":"freiksenet","email":"freiksenet@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/relay-compiler_2.0.0-printer-fix.4_1566559650727_0.6242943328346253"},"_hasShrinkwrap":false,"publish_time":1566559651007,"_cnpm_publish_time":1566559651007},"2.0.0-printer-fix.3":{"name":"@gatsbyjs/relay-compiler","description":"A compiler tool for building GraphQL-driven applications.","version":"2.0.0-printer-fix.3","keywords":["graphql","relay"],"license":"MIT","homepage":"https://facebook.github.io/relay/","bugs":{"url":"https://github.com/facebook/relay/issues"},"repository":{"type":"git","url":"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"},"licenseText":"MIT License\n\nCopyright (c) Facebook, Inc. and its affiliates.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@gatsbyjs/relay-compiler@2.0.0-printer-fix.3","dist":{"shasum":"3a9eb804663e0484ce04754c53ecfe25f617173d","size":551291,"noattachment":false,"key":"/@gatsbyjs/relay-compiler/-/@gatsbyjs/relay-compiler-2.0.0-printer-fix.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@gatsbyjs/relay-compiler/download/@gatsbyjs/relay-compiler-2.0.0-printer-fix.3.tgz"},"maintainers":[{"name":"gatsby_integrations","email":""},{"name":"kathmbeck","email":""},{"name":"mlgualtieri-gatsby","email":""},{"name":"pieh","email":""},{"name":"seanroberts","email":""},{"name":"serhalp-netlify","email":""}],"_npmUser":{"name":"freiksenet","email":"freiksenet@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/relay-compiler_2.0.0-printer-fix.3_1566549617366_0.1632468543594312"},"_hasShrinkwrap":false,"publish_time":1566549617571,"_cnpm_publish_time":1566549617571},"2.0.0-printer-fix.2":{"name":"@gatsbyjs/relay-compiler","description":"A compiler tool for building GraphQL-driven applications.","version":"2.0.0-printer-fix.2","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.2","_npmVersion":"6.1.0","_nodeVersion":"10.6.0","_npmUser":{"name":"freiksenet","email":"freiksenet@gmail.com"},"dist":{"shasum":"214db0e6072d40ea78ad5fabdb49d56bc95f4e99","size":551124,"noattachment":false,"key":"/@gatsbyjs/relay-compiler/-/@gatsbyjs/relay-compiler-2.0.0-printer-fix.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@gatsbyjs/relay-compiler/download/@gatsbyjs/relay-compiler-2.0.0-printer-fix.2.tgz"},"maintainers":[{"name":"gatsby_integrations","email":""},{"name":"kathmbeck","email":""},{"name":"mlgualtieri-gatsby","email":""},{"name":"pieh","email":""},{"name":"seanroberts","email":""},{"name":"serhalp-netlify","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/relay-compiler_2.0.0-printer-fix.2_1550150349265_0.3092560371260502"},"_hasShrinkwrap":false,"publish_time":1550150349410,"_cnpm_publish_time":1550150349410},"2.0.0-printer-fix":{"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":{"shasum":"542b3eb8e7f28142ccbde051dfc47c6ce506d022","size":551112,"noattachment":false,"key":"/@gatsbyjs/relay-compiler/-/@gatsbyjs/relay-compiler-2.0.0-printer-fix.tgz","tarball":"http://registry.cnpm.dingdandao.com/@gatsbyjs/relay-compiler/download/@gatsbyjs/relay-compiler-2.0.0-printer-fix.tgz"},"maintainers":[{"name":"gatsby_integrations","email":""},{"name":"kathmbeck","email":""},{"name":"mlgualtieri-gatsby","email":""},{"name":"pieh","email":""},{"name":"seanroberts","email":""},{"name":"serhalp-netlify","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/relay-compiler_2.0.0-printer-fix_1550142387373_0.078557634948341"},"_hasShrinkwrap":false,"publish_time":1550142387581,"_cnpm_publish_time":1550142387581}},"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","_attachments":{},"homepage":"https://facebook.github.io/relay/","bugs":{"url":"https://github.com/facebook/relay/issues"},"license":"MIT"}