-
Notifications
You must be signed in to change notification settings - Fork 412
/
package.json
168 lines (168 loc) · 5.75 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
{
"name": "nest-admin",
"version": "2.0.0",
"private": true,
"packageManager": "[email protected]",
"license": "MIT",
"engines": {
"node": ">=16.20.2",
"pnpm": ">=8"
},
"scripts": {
"postinstall": "npm run gen-env-types",
"prebuild": "rimraf dist",
"build": "nest build",
"dev": "npm run start",
"dev:debug": "npm run start:debug",
"repl": "npm run start -- --entryFile repl",
"bundle": "rimraf out && npm run build && ncc build dist/main.js -o out -m -t && chmod +x out/index.js",
"start": "cross-env NODE_ENV=development nest start -w --path tsconfig.json",
"start:debug": "cross-env NODE_ENV=development nest start --debug --watch",
"start:prod": "cross-env NODE_ENV=production node dist/main",
"prod": "cross-env NODE_ENV=production pm2-runtime start ecosystem.config.js",
"prod:pm2": "cross-env NODE_ENV=production pm2 restart ecosystem.config.js",
"prod:stop": "pm2 stop ecosystem.config.js",
"prod:debug": "cross-env NODE_ENV=production nest start --debug --watch",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"test": "jest",
"test:watch": "jest --watch",
"doc": "compodoc -p tsconfig.json -s",
"gen-env-types": "npx tsx scripts/genEnvTypes.ts || true",
"typeorm": "NODE_ENV=development typeorm-ts-node-esm -d ./dist/config/database.config.js",
"migration:create": "npm run typeorm migration:create ./src/migrations/initData",
"migration:generate": "npm run typeorm migration:generate ./src/migrations/update-table_$(echo $npm_package_version | sed 's/\\./_/g')",
"migration:run": "npm run typeorm -- migration:run",
"migration:revert": "npm run typeorm -- migration:revert",
"cleanlog": "rimraf logs",
"docker:build:dev": "docker compose --env-file .env --env-file .env.development up --build",
"docker:build": "docker compose --env-file .env --env-file .env.production up --build",
"docker:prod:up": "docker compose -f docker-compose.prod.yml --env-file .env --env-file .env.production up -d --pull=always",
"docker:up": "docker compose --env-file .env --env-file .env.production up -d --no-build",
"docker:down": "docker compose --env-file .env --env-file .env.production down",
"docker:rmi": "docker compose --env-file .env --env-file .env.production stop nest-admin-server && docker container rm nest-admin-server && docker rmi nest-admin-server",
"docker:logs": "docker compose --env-file .env --env-file .env.production logs -f"
},
"dependencies": {
"@fastify/cookie": "^9.4.0",
"@fastify/multipart": "^8.3.0",
"@fastify/static": "^7.0.4",
"@liaoliaots/nestjs-redis": "^10.0.0",
"@nestjs-modules/mailer": "^2.0.2",
"@nestjs/axios": "^3.0.3",
"@nestjs/bull": "^10.2.1",
"@nestjs/cache-manager": "^2.2.2",
"@nestjs/common": "^10.4.4",
"@nestjs/config": "^3.2.3",
"@nestjs/core": "^10.4.4",
"@nestjs/event-emitter": "^2.0.4",
"@nestjs/jwt": "^10.2.0",
"@nestjs/passport": "^10.0.3",
"@nestjs/platform-fastify": "^10.4.4",
"@nestjs/platform-socket.io": "^10.4.4",
"@nestjs/schedule": "^4.1.1",
"@nestjs/swagger": "^7.4.2",
"@nestjs/terminus": "^10.2.3",
"@nestjs/throttler": "^6.2.1",
"@nestjs/typeorm": "^10.0.2",
"@nestjs/websockets": "^10.4.4",
"@socket.io/redis-adapter": "^8.3.0",
"@socket.io/redis-emitter": "^5.1.0",
"axios": "^1.7.7",
"bull": "^4.16.3",
"cache-manager": "^5.7.6",
"cache-manager-ioredis-yet": "^2.1.2",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.1",
"cron": "^3.1.7",
"cron-parser": "^4.9.0",
"crypto-js": "^4.2.0",
"dayjs": "^1.11.13",
"dotenv": "16.4.5",
"handlebars": "^4.7.8",
"helmet": "^7.1.0",
"ioredis": "^5.4.1",
"lodash": "^4.17.21",
"mysql2": "^3.11.3",
"nanoid": "^3.3.7",
"nestjs-cls": "^4.4.1",
"nodemailer": "^6.9.15",
"passport": "^0.7.0",
"passport-google-oauth20": "^2.0.0",
"passport-jwt": "^4.0.1",
"passport-local": "^1.0.0",
"qiniu": "^7.13.0",
"qs": "^6.13.0",
"reflect-metadata": "^0.2.2",
"rxjs": "^7.8.1",
"socket.io": "^4.8.0",
"stacktrace-js": "^2.0.2",
"svg-captcha": "^1.4.0",
"systeminformation": "^5.23.5",
"ts-node": "^10.9.2",
"typeorm": "0.3.17",
"ua-parser-js": "^1.0.39",
"winston": "^3.14.2",
"winston-daily-rotate-file": "^5.0.0"
},
"devDependencies": {
"@antfu/eslint-config": "^3.7.3",
"@compodoc/compodoc": "^1.1.25",
"@nestjs/cli": "^10.4.5",
"@nestjs/schematics": "^10.1.4",
"@nestjs/testing": "^10.4.4",
"@types/cache-manager": "^4.0.6",
"@types/jest": "29.5.12",
"@types/lodash": "^4.17.10",
"@types/multer": "^1.4.12",
"@types/node": "^20.14.11",
"@types/passport-jwt": "^4.0.1",
"@types/qs": "^6.9.16",
"@types/supertest": "^6.0.2",
"@types/ua-parser-js": "^0.7.39",
"cross-env": "^7.0.3",
"eslint": "^9.11.1",
"jest": "^29.7.0",
"lint-staged": "^15.2.10",
"rimraf": "^6.0.1",
"simple-git-hooks": "^2.11.1",
"source-map-support": "^0.5.21",
"supertest": "^6.3.4",
"ts-jest": "^29.1.2",
"ts-loader": "^9.5.1",
"tsconfig-paths": "^4.2.0",
"tsx": "^4.19.1",
"typescript": "~5.5.4"
},
"pnpm": {
"peerDependencyRules": {
"allowedVersions": {}
}
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"moduleNameMapper": {
"^~/(.*)$": "<rootDir>/$1"
},
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
},
"lint-staged": {
"*": "eslint --fix"
}
}