-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
147 lines (147 loc) · 5.14 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
{
"name": "phone",
"version": "0.0.1",
"description": "simple and efficient authority management system with separation of front and backends",
"author": "buqiyuan",
"private": true,
"license": "MIT",
"scripts": {
"build": "nest build",
"start": "cross-env NODE_ENV=development nest start",
"dev": "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 node dist/main.js",
"pm2:prod": "pm2 start ecosystem.config.js --env production",
"pm2:dev": "pm2 start ecosystem.config.js --env development",
"pm2:test": "pm2 start ecosystem.config.js --env test",
"migration:create": "npx typeorm-ts-node-commonjs migration:create ./src/migrations/create-table",
"migration:generate": "node ./scripts/migration-generate.js",
"migration:run": "npm run build&&npx typeorm-ts-node-commonjs migration:run -d ./src/config/data-source.ts",
"migration:revert": "npx typeorm-ts-node-commonjs migration:revert -d ./src/config/data-source.ts",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"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",
"cleanlog": "rimraf logs",
"docker:rmi": "docker compose --env-file .env.production stop nest-admin-server && docker container rm nest-admin-server && docker rmi nest-admin-server",
"docker:build:dev": "docker compose --env-file .env.development up --build",
"docker:build": "docker compose --env-file .env.production up --build",
"docker:up": "docker compose --env-file .env.production up -d --no-build",
"docker:down": "docker compose --env-file .env.production down",
"docker:logs": "docker compose --env-file .env.production logs -f",
"prebuild": "rimraf dist",
"prepare": "husky install"
},
"dependencies": {
"@fastify/static": "^6.5.1",
"@fastify/swagger": "^8.2.0",
"@golevelup/nestjs-rabbitmq": "^3.4.0",
"@grpc/grpc-js": "^1.8.3",
"@grpc/proto-loader": "^0.7.4",
"@nestjs/axios": "^1.0.0",
"@nestjs/bull": "^0.6.2",
"@nestjs/cli": "^10.1.17",
"@nestjs/common": "^9.2.0",
"@nestjs/config": "^2.2.0",
"@nestjs/core": "^9.2.0",
"@nestjs/jwt": "^9.0.0",
"@nestjs/mapped-types": "*",
"@nestjs/microservices": "^9.2.1",
"@nestjs/platform-express": "^9.2.1",
"@nestjs/platform-fastify": "^9.2.0",
"@nestjs/platform-socket.io": "^9.2.0",
"@nestjs/schedule": "^2.2.0",
"@nestjs/serve-static": "^3.0.0",
"@nestjs/swagger": "^6.1.3",
"@nestjs/typeorm": "^9.0.1",
"@nestjs/websockets": "^9.2.0",
"@types/multer": "^1.4.7",
"alipay-sdk": "^3.4.0",
"amqp-connection-manager": "^4.1.11",
"axios": "^1.3.6",
"bull": "^4.10.2",
"cache-manager": "^5.1.3",
"class-transformer": "0.5.1",
"class-validator": "^0.13.2",
"crypto-js": "^4.1.1",
"date-fns": "^2.29.3",
"dayjs": "^1.11.7",
"express": "^4.18.2",
"fs-extra": "^11.1.1",
"ioredis": "^5.2.4",
"lodash": "^4.17.21",
"md5": "^2.3.0",
"mysql2": "^2.3.3",
"nanoid": "^3.3.4",
"otplib": "^12.0.1",
"puppeteer-chromium-resolver": "^20.0.0",
"qiniu": "^7.8.0",
"qrcode": "^1.5.1",
"query-mobile-phone-area": "^1.0.6",
"redlock": "^5.0.0-beta.2",
"reflect-metadata": "^0.1.13",
"reqeust": "^2.81.1",
"request-promise-native": "^1.0.9",
"retry": "^0.13.1",
"rxjs": "^7.5.7",
"start-server-webpack-plugin": "^2.2.5",
"svg-captcha": "^1.4.0",
"systeminformation": "^5.14.4",
"typeorm": "^0.3.10",
"ua-parser-js": "^1.0.32",
"winston": "^3.8.2",
"winston-daily-rotate-file": "^4.7.1"
},
"devDependencies": {
"@nestjs/schematics": "^9.0.3",
"@nestjs/testing": "^9.2.0",
"@types/bull": "^4.10.0",
"@types/cache-manager": "^4.0.2",
"@types/jest": "^29.2.3",
"@types/lodash": "^4.14.190",
"@types/node": "^18.11.9",
"@types/qrcode": "^1.5.0",
"@types/supertest": "^2.0.12",
"@types/ua-parser-js": "^0.7.36",
"@typescript-eslint/eslint-plugin": "^5.44.0",
"@typescript-eslint/parser": "^5.44.0",
"cross-env": "^7.0.3",
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.2",
"jest": "^29.3.1",
"lint-staged": "^13.0.4",
"prettier": "^2.8.0",
"supertest": "^6.3.1",
"ts-jest": "^29.0.3",
"ts-loader": "^9.4.1",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.1.0",
"typescript": "^4.9.3"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node"
},
"engines": {
"node": ">=16"
}
}