-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
79 lines (79 loc) · 1.98 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
{
"name": "phdv-interview",
"version": "1.0.0",
"private": true,
"scripts": {
"start:backend:debug": "node --inspect -r ts-node/register backend/index.ts",
"start:backend": "node -r ts-node/register backend/index.ts",
"start:backend:watch": "nodemon --watch backend/**/*.ts --exec 'node -r ts-node/register backend/index.ts'",
"build": "npx tsc",
"lint": "eslint \"**/{backend,apps,libs,test}/**/*.ts\" --fix",
"format": "prettier --write \"**/backend/**/*.ts\"",
"test": "jest",
"test:watch": "jest --watch"
},
"husky": {
"hooks": {
"pre-commit": "npm build && lint-staged",
"pre-push": "npm test"
}
},
"lint-staged": {
"**/(backend)/**/*.+(js|ts|jsx|tsx)": [
"npm lint",
"npm format"
]
},
"dependencies": {
"cors": "^2.8.5",
"express": "^4.17.3",
"express-async-handler": "^1.2.0"
},
"devDependencies": {
"@types/express": "^4.17.13",
"@types/jest": "^27.4.1",
"@types/node": "^17.0.23",
"@typescript-eslint/eslint-plugin": "^5.16.0",
"@typescript-eslint/parser": "^5.16.0",
"concurrently": "^7.1.0",
"eslint": "^8.11.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"husky": "^7.0.4",
"jest": "^27.5.1",
"jest-ts-auto-mock": "^2.1.0",
"lint-staged": "^12.3.7",
"nodemon": "^2.0.15",
"prettier": "^2.6.0",
"ts-auto-mock": "^3.5.0",
"ts-jest": "^27.1.3",
"ts-loader": "^9.2.8",
"ts-node": "^10.7.0",
"tsconfig-paths": "^3.14.1",
"ttypescript": "^1.5.13",
"typescript": "^4.6.2"
},
"jest": {
"verbose": true,
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "./",
"testRegex": ".*\\.test\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"testEnvironment": "node",
"setupFiles": [
"<rootDir>/config.ts"
],
"globals": {
"ts-jest": {
"compiler": "ttypescript"
}
},
"maxWorkers": 2
}
}