UNPKG

3.1 kBJSONView Raw
1{
2 "name": "graphql-code-generator",
3 "version": "0.5.1",
4 "description": "GraphQL types and code generator based on schema",
5 "main": "dist/index.js",
6 "scripts": {
7 "build-tests": "tsc -p tsconfig.test.json",
8 "watch": "tsc --watch",
9 "clean": "rimraf ./dist",
10 "lint": "tslint src/**/*.ts",
11 "prebuild": "npm run clean && npm run lint",
12 "build": "tsc",
13 "prestart": "npm run build",
14 "start": "cd dist && node gql-gen.js",
15 "debug": "cd dist && node --inspect --debug-brk gql-gen.js",
16 "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
17 "create-git-tag": "git tag $(cat package.json | $(npm bin)/json version)",
18 "dev": "cd dist && nodemon --ext ts,js,d.ts,template,graphql,json,handlebars gql-gen.js --dev --export ../dev-test/githunt/schema-export.js --template ts --out ../dev-test/githunt/typings.d.ts",
19 "prepare": "npm run build && npm run test && npm run create-git-tag && git push && git push --tags",
20 "test": "jest"
21 },
22 "repository": {
23 "type": "git",
24 "url": "git+https://github.com/dotansimha/graphql-codegen.git"
25 },
26 "bin": {
27 "gql-gen": "dist/gql-gen.js"
28 },
29 "keywords": [
30 "gql",
31 "generator",
32 "code",
33 "types",
34 "interfaces",
35 "graphql",
36 "codegen",
37 "apollo",
38 "node",
39 "typescript",
40 "ts",
41 "flow",
42 "types",
43 "d.ts",
44 "typings"
45 ],
46 "author": "Dotan Simha <dotansimha@gmail.com>",
47 "license": "MIT",
48 "bugs": {
49 "url": "https://github.com/dotansimha/graphql-codegen/issues"
50 },
51 "homepage": "https://github.com/dotansimha/graphql-codegen#readme",
52 "config": {
53 "commitizen": {
54 "path": "./node_modules/cz-conventional-changelog"
55 }
56 },
57 "jest": {
58 "verbose": true,
59 "collectCoverage": true,
60 "collectCoverageFrom": [
61 "**/src/**/*.ts"
62 ],
63 "coverageDirectory": "./test/coverage",
64 "coveragePathIgnorePatterns": [
65 "/node_modules/",
66 ".*?handlebars-helpers.*?"
67 ],
68 "moduleFileExtensions": [
69 "ts",
70 "tsx",
71 "js"
72 ],
73 "transform": {
74 "^.+\\.(ts|tsx)$": "<rootDir>/test/jest.typescript.js"
75 },
76 "testRegex": "/__tests__/.*\\.(ts|tsx|js)$",
77 "testEnvironment": "node"
78 },
79 "dependencies": {
80 "camel-case": "^3.0.0",
81 "commander": "^2.9.0",
82 "common-tags": "^1.4.0",
83 "glob": "^7.1.1",
84 "graphql": "^0.8.2",
85 "handlebars": "^4.0.6",
86 "mkdirp": "^0.5.1",
87 "pascal-case": "^2.0.0",
88 "request": "^2.79.0"
89 },
90 "devDependencies": {
91 "conventional-changelog": "^1.1.0",
92 "cz-conventional-changelog": "^1.2.0",
93 "jest": "^18.1.0",
94 "@types/commander": "^2.3.31",
95 "@types/common-tags": "^1.2.5",
96 "@types/glob": "^5.0.30",
97 "@types/graphql": "^0.8.2",
98 "@types/handlebars": "^4.0.31",
99 "@types/jest": "^16.0.3",
100 "@types/mkdirp": "^0.3.29",
101 "@types/node": "^6.0.55",
102 "@types/request": "^0.0.39",
103 "nodemon": "^1.11.0",
104 "rimraf": "^2.5.4",
105 "tslint": "^4.0.2",
106 "typescript": "^2.1.4"
107 },
108 "typings": "dist/index.d.ts",
109 "typescript": {
110 "definition": "dist/index.d.ts"
111 }
112}