-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
88 lines (88 loc) · 3.2 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
{
"name": "patrician-api",
"version": "0.2.0-canary.3",
"description": "Patrician API",
"license": "GPL-3.0-or-later",
"author": "Patrician Team",
"scripts": {
"bootstrap": "yarn bootstrap:dev",
"bootstrap:dev": "yarn && yarn build:dev && yarn db:drop && yarn db:create && yarn db:migrate",
"bootstrap:test": "WARTHOG_DB_DATABASE=patrician-api-test yarn db:create && WARTHOG_DB_DATABASE=patrician-api-test yarn db:migrate",
"bootstrap:prod": "yarn && yarn build:prod && yarn start:prod",
"//": "This is the default command run in CI, so it should point to Prod and also create Prod config",
"build": "yarn build:prod",
"build:prod": "WARTHOG_ENV=production yarn run config && yarn compile",
"build:dev": "yarn run config:dev && yarn codegen && yarn compile",
"check:code": "tsc --noEmit && yarn lint && prettier ./{src,test,tools}/**/*.ts --write",
"clean": "yarn db:drop && rm -rf ./node_modules ./generated ./dist",
"codegen": "warthog codegen",
"config": "WARTHOG_ENV=$NODE_ENV yarn dotenv:generate",
"config:dev": "WARTHOG_ENV=development yarn dotenv:generate",
"compile": "rm -rf ./dist && yarn tsc",
"deploy": "heroku git:remote -a warthog-starter && git push heroku master && WARTHOG_ENV=production yarn dotenv:generate && warthog db:migrate",
"dotenv:generate": "dotenvi -s ${WARTHOG_ENV:-development}",
"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-dry-run",
"list:users": "ts-node ./tools/list-users.ts",
"playground": "warthog playground",
"prettier": "prettier \"./src/**/*.ts\" --write",
"start": "yarn start:prod",
"start:dev": "ts-node-dev --type-check src/index.ts",
"start:dev:watch": "nodemon -e ts,graphql -x ts-node --type-check src/index.ts",
"start:prod": "WARTHOG_ENV=production yarn dotenv:generate && node dist/src/index.js",
"test": "WARTHOG_DB_DATABASE=patrician-api-test DEBUG= jest --verbose --coverage",
"test:watch": "WARTHOG_DB_DATABASE=patrician-api-test 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/bcrypt": "^3.0.0",
"@types/jsonwebtoken": "^8.3.9",
"@types/sqlite3": "^3.1.5",
"bcrypt": "^4.0.1",
"dotenv": "^8.0.0",
"dotenvi": "^0.6.0",
"jsonwebtoken": "^8.5.1",
"reflect-metadata": "^0.1.13",
"warthog": "^2.9.1"
},
"devDependencies": {
"@types/jest": "^24.0.15",
"@typescript-eslint/eslint-plugin": "^2.28.0",
"@typescript-eslint/parser": "^2.28.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.1",
"eslint-plugin-prettier": "^3.1.3",
"husky": "^4.2.5",
"jest": "^24.8.0",
"lint-staged": "^10.1.5",
"prettier": "^2.0.4",
"ts-jest": "^24.0.2",
"ts-node": "^7.0.1",
"ts-node-dev": "^1.0.0-pre.40",
"typescript": "^3.8.3"
},
"resolutions": {
"ts-node": "7.0.1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/patricianapp/patrician-api.git"
}
}