-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
96 lines (96 loc) · 2.99 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
{
"name": "nest-admin-ts",
"version": "0.0.1",
"description": "基于nestjs的基本后台管理系统。采用jwt身份认证。包含登录、用户、角色等。参考nest官网的最佳实践",
"author": "zhang",
"private": true,
"license": "MIT",
"scripts": {
"prebuild": "rimraf dist",
"build": "nest build -b swc",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "cross-env NEST_ENVIRONMENT=local nest start -b swc",
"start:dev": "cross-env NEST_ENVIRONMENT=dev nest start -b swc -w",
"start:debug": "nest start --debug --watch",
"start:prod": "nest build && cross-env NEST_ENVIRONMENT=prod node dist/src/main",
"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.4.1",
"@nestjs/core": "^10.4.1",
"@nestjs/jwt": "^10.2.0",
"@nestjs/passport": "^10.0.3",
"@nestjs/platform-express": "^10.4.1",
"@nestjs/typeorm": "^10.0.2",
"cross-env": "^7.0.3",
"log4js": "^6.9.1",
"mysql2": "^3.11.3",
"passport": "^0.7.0",
"passport-jwt": "^4.0.1",
"passport-local": "^1.0.0",
"reflect-metadata": "^0.2.2",
"rimraf": "^6.0.1",
"run-script-webpack-plugin": "^0.2.0",
"rxjs": "^7.8.1",
"typeorm": "^0.3.20"
},
"devDependencies": {
"@nestjs/cli": "^10.4.5",
"@nestjs/config": "^3.2.3",
"@nestjs/mapped-types": "^2.0.5",
"@nestjs/schematics": "^10.1.4",
"@nestjs/serve-static": "^4.0.2",
"@nestjs/testing": "^10.4.1",
"@rspack/cli": "^1.0.5",
"@rspack/core": "^1.0.5",
"@swc/cli": "0.4.1-nightly.20240914",
"@swc/core": "^1.7.26",
"@types/express": "^4.17.21",
"@types/hapi__joi": "^17.1.14",
"@types/jest": "29.5.13",
"@types/multer": "^1.4.12",
"@types/node": "^22.5.5",
"@types/passport-jwt": "^4.0.1",
"@types/passport-local": "^1.0.38",
"@types/supertest": "^6.0.2",
"@typescript-eslint/eslint-plugin": "^8.5.0",
"@typescript-eslint/parser": "^8.5.0",
"class-validator": "^0.14.1",
"eslint": "^9.10.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"jest": "29.7.0",
"joi": "^17.13.3",
"lodash": "^4.17.21",
"prettier": "^3.3.3",
"source-map-support": "^0.5.21",
"supertest": "^7.0.0",
"ts-jest": "29.2.5",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.2",
"tsconfig-paths": "4.2.0",
"typescript": "^5.6.2"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node"
}
}