graphql-codegen-core
Advanced tools
Comparing version 0.19.0-alpha.c608c623 to 0.19.0-alpha.c65acecf
{ | ||
"name": "graphql-codegen-core", | ||
"version": "0.19.0-alpha.c608c623", | ||
"description": "GraphQL types and code generator based on schema", | ||
"main": "dist/index.js", | ||
"version": "0.19.0-alpha.c65acecf", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/dotansimha/graphql-code-generator.git" | ||
}, | ||
"scripts": { | ||
"clean": "rimraf ./dist", | ||
"lint": "tslint src/**/*.ts", | ||
"prebuild": "yarn clean && yarn lint", | ||
"build": "tsc", | ||
"prestart": "yarn build", | ||
"start": "cd dist && node gql-gen.js", | ||
"debug": "cd dist && node --inspect --debug-brk gql-gen.js", | ||
"test": "jest --no-cache --verbose --runInBand" | ||
"prebuild": "yarn clean", | ||
"build": "tsc -m esnext --outDir dist/esnext && tsc -m commonjs --outDir dist/commonjs", | ||
"test": "jest --config ../../jest.config.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/dotansimha/graphql-codegen.git" | ||
}, | ||
"keywords": [ | ||
@@ -38,3 +34,2 @@ "gql", | ||
"author": "Dotan Simha <dotansimha@gmail.com>", | ||
"license": "MIT", | ||
"bugs": { | ||
@@ -44,38 +39,20 @@ "url": "https://github.com/dotansimha/graphql-codegen/issues" | ||
"homepage": "https://github.com/dotansimha/graphql-codegen#readme", | ||
"config": { | ||
"commitizen": { | ||
"path": "./node_modules/cz-conventional-changelog" | ||
} | ||
"peerDependencies": { | ||
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0" | ||
}, | ||
"jest": { | ||
"transform": { | ||
"^.+\\.tsx?$": "ts-jest" | ||
}, | ||
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", | ||
"moduleFileExtensions": [ | ||
"ts", | ||
"tsx", | ||
"js", | ||
"jsx", | ||
"json", | ||
"node" | ||
] | ||
}, | ||
"dependencies": { | ||
"chalk": "2.4.2", | ||
"change-case": "3.1.0", | ||
"common-tags": "1.8.0", | ||
"graphql-tag": "2.10.1", | ||
"graphql-toolkit": "0.2.0", | ||
"graphql-tools": "4.0.4", | ||
"ts-log": "2.1.4", | ||
"winston": "3.2.1" | ||
"graphql-codegen-plugin-helpers": "0.19.0-alpha.c65acecf", | ||
"graphql-toolkit": "0.2.6", | ||
"tslib": "1.9.3" | ||
}, | ||
"peerDependencies": { | ||
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0" | ||
"devDependencies": { | ||
"ts-jest": "24.0.0" | ||
}, | ||
"typings": "dist/index.d.ts", | ||
"sideEffects": false, | ||
"main": "dist/commonjs/index.js", | ||
"module": "dist/esnext/index.js", | ||
"typings": "dist/esnext/index.d.ts", | ||
"typescript": { | ||
"definition": "dist/index.d.ts" | ||
"definition": "dist/esnext/index.d.ts" | ||
} | ||
} |
@@ -1,30 +0,9 @@ | ||
# `graphql-codegen-core` | ||
# GraphQL Code Generator | ||
This package is in charge of converting `GraphQLSchema` and GraphQL client-side operations (query/mutation/subscription/fragment) into a template consumable JSON structure. | ||
<p align="center"> | ||
<img src="https://github.com/dotansimha/graphql-code-generator/blob/master/logo.png?raw=true" /> | ||
</p> | ||
The entry points of this package are: | ||
Live demo and full documentation: [graphql-code-generator.com](https://graphql-code-generator.com) | ||
* `schemaToTemplateContext` - transforms `GraphQLSchema` into [`SchemaTemplateContext`](./src/types.ts#L78-L94) object. | ||
* `transformDocument` - transforms GraphQL `DocumentNode` (object that can contains multiple GraphQL operations and fragments) to [`Document`](./src/types.ts#L195-L200). | ||
The purpose of the transformation is to simplify the links and connections between the GraphQL entities, and to add template indicators (`has...`, `is...`, `uses...`) to the context. | ||
## Build process | ||
The build process of this package is based on TypeScript and compiled with `typescript` compiler. | ||
To build this package, start by installing the package dependencies: | ||
``` | ||
$ npm install | ||
// Or, with Yarn | ||
$ yarn | ||
``` | ||
Then, you can use the existing NPM scripts to build the package: | ||
``` | ||
$ npm build | ||
// Or, with Yarn | ||
$ yarn build | ||
``` | ||
Project repository: [graphql-code-generator](https://github.com/dotansimha/graphql-code-generator) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
4
0
25722
1
32
363
10
1
+ Addedtslib@1.9.3
+ Addedaggregate-error@2.2.0(transitive)
+ Addedgraphql-codegen-plugin-helpers@0.19.0-alpha.c65acecf(transitive)
+ Addedgraphql-tag-pluck@0.7.0(transitive)
+ Addedgraphql-toolkit@0.2.6(transitive)
+ Addedimport-from@2.1.0(transitive)
+ Addedresolve-from@3.0.0(transitive)
+ Addedtslib@1.9.3(transitive)
- Removedchalk@2.4.2
- Removedchange-case@3.1.0
- Removedcommon-tags@1.8.0
- Removedgraphql-tag@2.10.1
- Removedgraphql-tools@4.0.4
- Removedts-log@2.1.4
- Removedwinston@3.2.1
- Removed@colors/colors@1.6.0(transitive)
- Removed@types/triple-beam@1.3.5(transitive)
- Removedaggregate-error@2.1.0(transitive)
- Removedansi-styles@3.2.1(transitive)
- Removedasync@2.6.4(transitive)
- Removedchalk@2.4.2(transitive)
- Removedcolor@3.2.1(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedcolor-string@1.9.1(transitive)
- Removedcolornames@1.1.1(transitive)
- Removedcolorspace@1.1.4(transitive)
- Removeddiagnostics@1.1.1(transitive)
- Removedenabled@1.0.2(transitive)
- Removedenv-variable@0.0.6(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedfecha@4.2.3(transitive)
- Removedgraphql-tag@2.10.1(transitive)
- Removedgraphql-tag-pluck@0.6.0(transitive)
- Removedgraphql-toolkit@0.2.0(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedis-arrayish@0.3.2(transitive)
- Removedis-stream@1.1.0(transitive)
- Removedkuler@1.0.1(transitive)
- Removedlodash@4.17.21(transitive)
- Removedlogform@2.7.0(transitive)
- Removedone-time@0.0.4(transitive)
- Removedreadable-stream@3.6.2(transitive)
- Removedsafe-stable-stringify@2.5.0(transitive)
- Removedsimple-swizzle@0.2.2(transitive)
- Removedstack-trace@0.0.10(transitive)
- Removedstring_decoder@1.3.0(transitive)
- Removedsupports-color@5.5.0(transitive)
- Removedtext-hex@1.0.0(transitive)
- Removedtriple-beam@1.4.1(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedwinston@3.2.1(transitive)
- Removedwinston-transport@4.9.0(transitive)
Updatedgraphql-toolkit@0.2.6