graphql-codegen-core
Advanced tools
Comparing version
{ | ||
"name": "graphql-codegen-core", | ||
"version": "0.19.0-alpha.084e1254", | ||
"description": "GraphQL types and code generator based on schema", | ||
"main": "dist/index.js", | ||
"version": "0.19.0-alpha.0b52d31c", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/dotansimha/graphql-code-generator.git" | ||
}, | ||
"scripts": { | ||
"clean": "rimraf ./dist", | ||
"lint": "tslint src/**/*.ts", | ||
"build": "tsc", | ||
"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-code-generator.git" | ||
}, | ||
"keywords": [ | ||
@@ -34,3 +34,2 @@ "gql", | ||
"author": "Dotan Simha <dotansimha@gmail.com>", | ||
"license": "MIT", | ||
"bugs": { | ||
@@ -40,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.0b52d31c", | ||
"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) |
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
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
-55.56%0
-100%25722
-72.39%1
Infinity%32
-61.9%363
-73.27%10
-67.74%1
Infinity%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated