-
Notifications
You must be signed in to change notification settings - Fork 5
/
package.json
113 lines (113 loc) · 3.5 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
110
111
112
113
{
"name": "nestjs-api-server",
"version": "0.0.1",
"description": "一套基于NestJS-API-Server",
"author": "BoBo<boboooooo159@gmail.com>",
"private": true,
"license": "MIT",
"scripts": {
"prebuild": "rimraf dist",
"build": "nest build",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "cross-env NODE_ENV=development && nest start --watch",
"start:debug": "cross-env NODE_ENV=development && nest start --debug --watch",
"start:prod": "cross-env NODE_ENV=production && PORT=3000 node dist/main",
"start:test": "cross-env NODE_ENV=test && cross-env NODE_ENV=test && node dist/main",
"pm2": "pm2 start --name admin dist/main.js --env production",
"db": "rm -rf src/entities & npx typeorm-model-generator -h localhost -d nest -p 3306 -u root -x root -e mysql -o src/entities --noConfig true --ce pascal --cp camel",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json"
},
"dependencies": {
"@nestjs/common": "10.2.8",
"@nestjs/config": "^3.1.1",
"@nestjs/core": "10.2.8",
"@nestjs/jwt": "^10.2.0",
"@nestjs/platform-express": "10.2.8",
"@nestjs/testing": "10.2.8",
"@nestjs/passport": "^10.0.2",
"@nestjs/platform-socket.io": "^10.2.8",
"@nestjs/platform-ws": "^10.2.8",
"@nestjs/swagger": "^7.1.15",
"@nestjs/typeorm": "^10.0.0",
"@nestjs/websockets": "^10.2.8",
"@nestjs/serve-static": "^4.0.0",
"compression": "^1.7.4",
"dayjs": "^1.8.35",
"helmet": "^4.0.0",
"log4js": "^6.3.0",
"moment": "^2.27.0",
"mysql2": "^3.6.3",
"passport": "^0.4.1",
"passport-jwt": "^4.0.0",
"passport-local": "^1.0.0",
"path": "^0.12.7",
"reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2",
"rxjs": "7.5.5",
"stacktrace-js": "^2.0.2",
"swagger-ui-express": "^4.1.4",
"typeorm": "^0.3.17",
"uuid": "^8.3.0"
},
"devDependencies": {
"@nestjs/cli": "^10.2.1",
"@nestjs/schematics": "^10.0.3",
"@nestjs/testing": "^10.2.8",
"@types/express": "^4.17.3",
"@types/helmet": "^0.0.47",
"@types/jest": "25.2.3",
"@types/node": "^13.9.1",
"@types/passport-local": "^1.0.33",
"@types/supertest": "^2.0.8",
"@typescript-eslint/eslint-plugin": "6.11.0",
"@typescript-eslint/parser": "6.11.0",
"cross-env": "^7.0.3",
"eslint": "8.53.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-prettier": "^5.0.1",
"husky": "^4.3.0",
"jest": "26.0.1",
"lint-staged": "^10.5.1",
"prettier": "^3.1.0",
"start-server-webpack-plugin": "^2.2.5",
"supertest": "^4.0.2",
"ts-jest": "26.1.0",
"ts-node": "^8.6.2",
"tsconfig-paths": "^4.2.0",
"typescript": "5.2.2",
"webpack-node-externals": "^2.5.1",
"tsconfig-paths-webpack-plugin": "^4.1.0"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"src/**/*.{js,ts}": [
"prettier --write",
"eslint --fix",
"git add"
]
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"testRegex": ".spec.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"coverageDirectory": "../coverage",
"testEnvironment": "node"
}
}