{"name":"graphql-code-generator","version":"0.11.0-alpha.50095dc4","license":"MIT","bin":{"gql-gen":"dist/cli.js"},"repository":{"type":"git","url":"git+https://github.com/dotansimha/graphql-codegen.git"},"scripts":{"clean":"rimraf ./dist","lint":"tslint src/**/*.ts","prebuild":"yarn clean && yarn lint","build":"tsc","prestart":"yarn build","start":"cd dist && node index.js","debug":"cd dist && node --inspect --debug-brk index.js","test":"jest --no-cache --verbose --runInBand"},"keywords":["gql","generator","code","types","interfaces","graphql","codegen","apollo","node","typescript","ts","flow","types","d.ts","typings"],"author":{"name":"Dotan Simha","email":"dotansimha@gmail.com"},"bugs":{"url":"https://github.com/dotansimha/graphql-codegen/issues"},"homepage":"https://github.com/dotansimha/graphql-codegen#readme","jest":{"verbose":true,"collectCoverage":true,"collectCoverageFrom":["src/**/*.ts"],"coverageDirectory":"./tests/coverage","coveragePathIgnorePatterns":["/node_modules/",".*?handlebars-helpers.*?","src/index.ts","src/types.ts"],"moduleFileExtensions":["ts","tsx","js"],"transform":{"^.+\\.(ts|tsx)$":"<rootDir>/tests/jest.typescript.js"},"testRegex":"tests/.*\\.spec.ts$","testEnvironment":"node"},"peerDependencies":{"graphql":"^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || || ^0.13.0"},"dependencies":{"@types/babylon":"6.16.3","@types/is-glob":"4.0.0","@types/prettier":"1.13.1","@types/valid-url":"1.0.2","babel-types":"7.0.0-beta.3","babylon":"7.0.0-beta.47","commander":"2.16.0","glob":"7.1.2","graphql-codegen-compiler":"0.11.0-alpha.50095dc4","graphql-codegen-core":"0.11.0-alpha.50095dc4","is-glob":"4.0.0","is-valid-path":"0.1.1","mkdirp":"0.5.1","prettier":"1.13.7","request":"2.87.0","valid-url":"1.0.9"},"devDependencies":{"graphql-codegen-typescript-template":"0.11.0-alpha.50095dc4","graphql-codegen-typescript-template-multiple":"0.9.4"},"main":"./dist/index.js","typings":"./dist/index.d.ts","typescript":{"definition":"./dist/index.d.ts"},"readmeFilename":"README.md","readme":"# `graphql-codegen-cli`\n\n[Refer to full documentation, examples and more here](https://github.com/dotansimha/graphql-code-generator/blob/master/README.md)\n\nThis package is the front-facing package of the code generator.\n\nIt parses the CLI commands into a `GeneratorConfig` and `Settings` object, and also in charge of reading and writing files from the filesystem, and execute Introspection request to remote GraphQL endpoints.\n\nFor a full CLI documentation, please refer to the main `README` file of the package.\n\n## `gql-gen.json`\n\n`gql-gen.json` is a local config file, provides a custom config when using custom templates.\n\nThis is an example for a valid file:\n\n```json\n{\n  \"flattenTypes\": true,\n  \"primitives\": {\n    \"String\": \"string\",\n    \"Int\": \"number\",\n    \"Float\": \"number\",\n    \"Boolean\": \"boolean\",\n    \"ID\": \"string\"\n  },\n  \"customHelpers\": {\n    \"myHelper\": \"./my-helper.js\"\n  }\n}\n```\n\nYou can override the config for `flattenTypes` and `primitives` (refer to `graphql-codegen-compiler` package README for more info).\n\nYou can also specify JavaScript files for `customHelpers` when generating custom templates (the custom files should export a `Function` as default).\n\n### Generator Specific Config\n\nYou can also pass configuration object to the output generator, by adding `generatorConfig` to the `gql-gen.json` file:\n\n```json\n{\n  \"generatorConfig\": {\n    \"myConfig\": \"my value\"\n  },\n  \"flattenTypes\": true,\n  \"primitives\": {\n    \"String\": \"string\",\n    \"Int\": \"number\",\n    \"Float\": \"number\",\n    \"Boolean\": \"boolean\",\n    \"ID\": \"string\"\n  }\n}\n```\n","description":"[Refer to full documentation, examples and more here](https://github.com/dotansimha/graphql-code-generator/blob/master/README.md)","_id":"graphql-code-generator@0.11.0-alpha.50095dc4","dist":{"shasum":"08c8b055799106cd21b185443a5d61f71be6129a","tarball":"http://registry-npm.ywwl.com/graphql-code-generator/download/graphql-code-generator-0.11.0-alpha.50095dc4.tgz","fileCount":61,"unpackedSize":78525,"integrity":"sha512-pZNC9FLw1WkI6d41qwlRLiSYp1DaYdlTihjzajtEeypqYECCJOrfsV7yBFsBHT7aQnB+9FC6GIYqkIfuKy6HUg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEg2jaUL4hRju+XFK1D5nkMKFQ/Xzu5P+/GvTckTF9MXAiBAf9NGgwik0zlcoo7tzZfm0VETG1grX24XErvUGMnpQg=="}],"size":20500,"noattachment":false,"key":"/graphql-code-generator/-/graphql-code-generator-0.11.0-alpha.50095dc4.tgz"},"maintainers":[{"name":"dotansimha","email":"dotansimha@gmail.com"}],"_npmUser":{"name":"dotansimha","email":"dotansimha@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-code-generator_0.11.0-alpha.50095dc4_1531564930024_0.10603785062943105"},"_hasShrinkwrap":false,"publish_time":1531564930611,"_cnpm_publish_time":1531564930611,"dist-tags":{"canary":"0.19.0-alpha.80ec87c7","latest":"0.18.2"}}