Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

graphql-codegen-core

Package Overview
Dependencies
Maintainers
1
Versions
1651
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-codegen-core - npm Package Compare versions

Comparing version 0.19.0-alpha.813c8d3c to 0.19.0-alpha.8182d8a5

dist/commonjs/codegen.d.ts

61

package.json
{
"name": "graphql-codegen-core",
"version": "0.19.0-alpha.813c8d3c",
"description": "GraphQL types and code generator based on schema",
"main": "dist/index.js",
"version": "0.19.0-alpha.8182d8a5",
"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.8182d8a5",
"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)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc