-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpackage.json
109 lines (109 loc) · 3.11 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
"name": "warthog-starter",
"version": "0.0.0",
"description": "Warthog GraphQL API minimal example",
"license": "MIT",
"author": {
"name": "Dan Caddigan",
"url": "https://github.com/goldcaddy77"
},
"engines": {
"node": ">=8"
},
"scripts": {
"bootstrap": "./tools/scripts/bootstrap.sh",
"//": "This is the default command run in CI, so it should point to Prod and also create Prod config",
"build": "./tools/scripts/build.sh",
"check:code": "tsc --noEmit && yarn lint && prettier ./{src,test,tools}/**/*.ts --write",
"clean": "yarn db:drop && rm -rf ./node_modules ./generated ./dist",
"codegen": "WARTHOG_ENV=local yarn run config && warthog codegen",
"config": "dotenvi -s ${WARTHOG_ENV:-local}",
"compile": "rm -rf ./dist && yarn tsc",
"deploy": "./tools/scripts/deploy.sh",
"db:create": "warthog db:create",
"db:drop": "warthog db:drop",
"db:migrate:generate": "warthog db:migrate:generate --name",
"db:migrate": "warthog db:migrate",
"db:seed": "ts-node tools/seed.ts",
"lint": "eslint './+(src|test|tools)/**/*.{js,ts}' --fix",
"playground": "warthog playground",
"prettier": "prettier ./{src,test,tools}/**/*.ts --write",
"start": "./tools/scripts/start.sh",
"start:prod": "NODE_ENV=production WARTHOG_ENV=production WARTHOG_APP_PORT=$PORT ./tools/scripts/start.sh",
"test": "./tools/scripts/test.sh",
"test:watch": "DEBUG= jest --watch"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged && tsc -p ./tsconfig.json && yarn test"
}
},
"lint-staged": {
"*.ts": [
"eslint --fix",
"prettier --write"
],
"*.{js,json}": [
"prettier --write"
]
},
"dependencies": {
"@types/dotenv": "^8.2.0",
"@types/pg": "^7.14.5",
"dotenv": "^8.2.0",
"dotenvi": "^0.8.0",
"dotenv-cli": "^3.1.0",
"pg": "^8.3.3",
"reflect-metadata": "^0.1.13",
"ts-node": "^8.8.2",
"typeorm": "^0.2.24",
"typeorm-typedi-extensions": "^0.2.3",
"typescript": "^3.8.3",
"warthog": "^2.19.0"
},
"devDependencies": {
"@types/faker": "^4.1.11",
"@types/jest": "^25.2.1",
"@types/node": "^13.11.0",
"@typescript-eslint/eslint-plugin": "^2.27.0",
"@typescript-eslint/parser": "^2.27.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.1",
"eslint-plugin-prettier": "^3.1.2",
"faker": "^4.1.0",
"husky": "^4.2.3",
"jest": "^25.2.7",
"lint-staged": "^10.1.2",
"prettier": "^2.0.4",
"ts-jest": "^25.3.1",
"ts-node-dev": "^1.0.0-pre.44"
},
"jest": {
"globals": {
"ts-jest": {
"tsConfig": "tsconfig.test.json"
}
},
"transform": {
".ts": "ts-jest"
},
"testRegex": "\\.test\\.ts$",
"moduleFileExtensions": [
"js",
"ts"
],
"coveragePathIgnorePatterns": [
"/node_modules/",
"\\.test\\.ts$"
],
"globalSetup": "<rootDir>/test/globalSetup.ts",
"globalTeardown": "<rootDir>/test/globalTeardown.ts",
"setupFilesAfterEnv": [
"./test/setupFilesAfterEnv.ts"
]
},
"prettier": {
"printWidth": 100,
"singleQuote": true
}
}