This repository has been archived by the owner on Feb 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
89 lines (89 loc) · 4.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
{
"name": "www-backend",
"scripts": {
"build": "npm-run-all server:build tslint:build && ts-node scripts/copydeps.ts",
"start": "npm-run-all -p server:watch tslint:watch postgraphile:serve playground",
"watch": "npm-run-all -p server:watch tslint:watch",
"server:build": "rimraf build && tsc && cp src/schema.graphql build/schema.graphql && cp src/generated/postgraphile.graphql build/generated/postgraphile.graphql",
"server:watch": "npm-watch server:runts",
"server:debug": "ts-node --inspect src/index.ts config.dev.json",
"server:runts": "ts-node src/index.ts config.dev.json",
"server:runts:stage": "ts-node src/index.ts config.stage.json",
"server:runts:prod": "ts-node src/index.ts config.prod.json",
"server:runjs": "node build/index.js config.dev.json",
"server:runjs:stage": "node build/index.js config.stage.json",
"server:runjs:prod": "node build/index.js config.prod.json",
"tslint:build": "tslint --exclude src/migration/** --project .",
"tslint:watch": "npm-watch tslint:build",
"migration:run": "ts-node ./node_modules/typeorm/cli.js migration:run -f config.dev",
"migration:run:stage": "ts-node ./node_modules/typeorm/cli.js migration:run -f config.stage",
"migration:run:prod": "ts-node ./node_modules/typeorm/cli.js migration:run -f config.prod",
"migration:revert": "ts-node ./node_modules/typeorm/cli.js migration:revert -f config.dev",
"migration:revert:stage": "ts-node ./node_modules/typeorm/cli.js migration:revert -f config.stage",
"migration:revert:prod": "ts-node ./node_modules/typeorm/cli.js migration:revert -f config.prod",
"migration:generate": "ts-node ./node_modules/typeorm/cli.js migration:generate -n Migration -d src/migration -f config.dev",
"postgraphile:generate": "npm-run-all postgraphile:generate-step1 postgraphile:generate-step2 postgraphile:generate-step3",
"postgraphile:generate-step1": "ts-node scripts/schema.generate.ts config.dev.json",
"postgraphile:generate-step2": "graphql-binding --language typescript --input src/embeddedPostgraphile/index.ts --outputBinding src/generated/postgraphile.ts && node scripts/schema.patch.js",
"postgraphile:generate-step3": "cross-env CODEGEN_ENUMS_AS_TYPES=TRUE gql-gen --require ts-node/register --template typescript --schema scripts/schema.import.ts --out src/generated/",
"postgraphile:serve": "ts-node scripts/schema.serve.ts config.dev.json",
"playground": "graphql playground"
},
"watch": {
"server:runts": {
"patterns": [
"src/**"
],
"extensions": "ts,js,graphql",
"quiet": false,
"legacyWatch": false,
"delay": 500
},
"tslint:build": {
"patterns": [
"src/**"
],
"extensions": "ts",
"quiet": false,
"legacyWatch": false,
"delay": 500
}
},
"resolutions": {
"graphql": "0.13.2"
},
"dependencies": {
"apollo-server": "2.0.0",
"bcryptjs": "2.4.3",
"graphql-import": "0.6.0",
"jsonwebtoken": "8.3.0",
"node-fetch": "2.2.0",
"pg": "7.4.3",
"postgraphile": "4.0.0-rc.2",
"reflect-metadata": "0.1.12",
"typeorm": "0.2.7"
},
"devDependencies": {
"@types/bcryptjs": "2.4.1",
"@types/graphql": "^0.13.4",
"@types/jsonwebtoken": "7.2.8",
"@types/pg": "7.4.10",
"@types/ws": "6.0.0",
"cross-env": "^5.2.0",
"dotenv-cli": "1.4.0",
"graphql-binding": "^2.2.3",
"graphql-cli": "2.16.5",
"graphql-code-generator": "^0.10.3",
"graphql-codegen-typescript-template": "^0.10.3",
"graphql-tools": "^3.0.5",
"nodemon": "1.18.3",
"npm-run-all": "4.1.3",
"npm-watch": "0.3.0",
"rimraf": "2.6.2",
"ts-node": "6.2.0",
"tslint": "5.11.0",
"tslint-config-airbnb": "5.9.2",
"tslint-react": "3.6.0",
"typescript": "2.9.2"
}
}