-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
82 lines (82 loc) · 2.84 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"name": "@tomyitav/apollo-typed-lambda",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"build-schema": "rimraf ./dist/graphql/schema/ && find src/graphql/types -iname \"*.ts\" > ts-files.txt && tsc ./src/graphql/schema/genereator-schema.ts --outDir ./dist/graphql/schema/ --lib esnext && tsc @ts-files.txt --outDir ./dist/graphql/types --lib esnext && rimraf ts-files.txt",
"build-schema:win": "rimraf ./dist/graphql/schema/ && dir /s /b \"src/graphql/types\" | findstr /e .ts > ts-files.txt && tsc ./src/graphql/schema/genereator-schema.ts --outDir ./dist/graphql/schema/ --lib esnext && tsc @ts-files.txt --outDir ./dist/graphql/types --lib esnext && del ts-files.txt",
"generate-ts": "gql-gen",
"pregenerate": "npm run build-schema",
"pregenerate:win": "npm run build-schema:win",
"generate": "npm run generate-ts",
"generate:win": "npm run generate-ts",
"clean": "rimraf dist",
"prebuild": "npm run clean && npm run generate",
"build": "npm run tsc",
"build:win": "npm run tsc:win",
"start": "sls offline start --skipCacheInvalidation",
"dev": "tsc --watch & nodemon dist",
"test": "tsc && mocha dist/**/*.spec.js",
"lint": "eslint src --ext ts",
"tsc": "tsc",
"tsc:win": "tsc",
"sls:offline": "npm run build && npm start",
"sls:offline:win": "npm run build && npm start",
"tslint": "tslint --fix -c tslint.json 'src/**/*.ts'",
"prettier": "prettier --write \"src/**/*.ts\"",
"precommit-tslint": "tslint --fix -c tslint.json",
"precommit-prettier": "prettier --write",
"tslint-check": "tslint-config-prettier-check ./tslint.json",
"deploy": "npm run build && sls deploy"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"linters": {
"*.ts": [
"npm run precommit-tslint",
"npm run precommit-prettier",
"git add"
]
}
},
"_moduleAliases": {
"@src": "dist"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"apollo-server-lambda": "2.6.4",
"core-js": "3.1.4",
"graphql": "14.3.1",
"graphql-tools": "4.0.4",
"injection-js": "2.2.1",
"merge-graphql-schemas": "1.5.8",
"module-alias": "2.2.2",
"reflect-metadata": "0.1.13",
"zone.js": "0.9.1"
},
"devDependencies": {
"@graphql-codegen/cli": "1.2.1",
"@graphql-codegen/typescript": "1.2.1",
"@graphql-codegen/typescript-operations": "1.2.1",
"@types/graphql": "14.2.1",
"@types/node": "12.0.12",
"husky": "2.4.1",
"lint-staged": "8.2.1",
"prettier": "1.18.2",
"rimraf": "2.6.3",
"serverless-dotenv-plugin": "2.1.1",
"serverless-offline": "5.3.3",
"tslint": "5.18.0",
"tslint-config-prettier": "1.18.0",
"tslint-eslint-rules": "5.4.0",
"tslint-react": "4.0.0",
"typescript": "3.5.3"
}
}