-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
81 lines (81 loc) · 2.52 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
{
"name": "node-take-home",
"version": "0.1.0",
"description": "A starting point for Node.js express apps with TypeScript",
"engines": {
"node": ">=14.0.0"
},
"scripts": {
"build": "npm run build-ts && npm run lint",
"build-ts": "tsc",
"debug": "npm run build && npm run watch-debug",
"lint": "tsc --noEmit && eslint \"**/*.{js,ts}\" --quiet --fix",
"serve": "node dist/server.js",
"serve-debug": "nodemon --inspect dist/server.js",
"start": "npm run serve",
"test": "jest --forceExit --coverage --verbose",
"dev": "concurrently -k -p \"[{name}]\" -n \"TypeScript,Node\" -c \"cyan.bold,green.bold\" \"npm run watch-ts\" \"npm run watch-node\"",
"watch-debug": "concurrently -k -p \"[{name}]\" -n \"TypeScript,Node\" -c \"cyan.bold,green.bold\" \"npm run watch-ts\" \"npm run serve-debug\"",
"watch-node": "nodemon dist/server.js",
"watch-test": "npm run test -- --watch",
"watch-ts": "tsc -w",
"docker:knex": "docker-compose run --rm app npx knex --knexfile src/db/knexfile.ts",
"db:migrate:make": "npm run docker:knex -- migrate:make",
"db:migrate": "npm run docker:knex -- migrate:latest",
"db:seed": "npm run docker:knex -- seed:run",
"db:setup": "npm run db:migrate && npm run db:seed"
},
"dependencies": {
"compression": "^1.7.4",
"dotenv": "^8.2.0",
"errorhandler": "^1.5.1",
"express": "^4.17.1",
"knex": "^0.21.17",
"lusca": "^1.6.1",
"module-alias": "^2.2.2",
"pg": "^8.5.1",
"winston": "^3.2.1"
},
"devDependencies": {
"@types/compression": "^1.7.0",
"@types/errorhandler": "^1.5.0",
"@types/eslint": "^7.2.6",
"@types/express": "^4.17.11",
"@types/faker": "^5.1.6",
"@types/jest": "^24.0.23",
"@types/lusca": "^1.6.1",
"@types/node": "^14.14.25",
"@types/supertest": "^2.0.8",
"@types/winston": "^2.4.4",
"@typescript-eslint/eslint-plugin": "^2.34.0",
"@typescript-eslint/parser": "^2.3.1",
"concurrently": "^5.3.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.15.0",
"faker": "^5.3.1",
"husky": "^4.3.8",
"jest": "^24.9.0",
"lint-staged": "^10.5.3",
"nodemon": "^2.0.7",
"prettier": "2.2.1",
"supertest": "^6.1.1",
"ts-jest": "^24.1.0",
"ts-node": "^8.4.1",
"typescript": "^3.6.3"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{ts,js}": [
"prettier --write",
"npm run lint",
"npm t -- --passWithNoTests"
]
},
"_moduleAliases": {
"~": "dist"
}
}