-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
167 lines (167 loc) · 5.57 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
{
"name": "starter-nestjs",
"version": "0.1.0",
"description": "Starter template for NestJS.",
"repository": {
"type": "git",
"url": ""
},
"author": "wang",
"license": "MIT",
"packageManager": "^pnpm@6.32.4",
"scripts": {
"build": "rimraf dist && tsc -p tsconfig.build.json",
"clean": "rimraf dist",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "dotenv -e env/local.env -- nest start",
"start:dev": "dotenv -e env/local.env -- nest start --watch",
"start:debug": "dotenv -e env/local.env -- nest start --debug -- --watch",
"start:prod": "dotenv -e env/production.env -- node dist/src/main",
"lint": "eslint \"{src,test}/**/*.ts\" --fix",
"test": "dotenv -e env/test.env -- jest",
"test:watch": "dotenv -e env/test.env -- jest --watch",
"test:cov": "dotenv -e env/test.env -- jest --coverage",
"test:debug": "dotenv -e env/test.env -- node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "dotenv -e env/test.env -- jest --config ./test/jest-e2e.json",
"migrate:dev": "dotenv -e env/local.env -- prisma migrate dev --preview-feature",
"migrate:dev:create": "dotenv -e env/local.env -- prisma migrate dev --create-only --preview-feature",
"migrate:dev:pull": "dotenv -e env/local.env -- prisma db pull",
"migrate:seed": "dotenv -e env/local.env prisma db seed",
"migrate:reset": "dotenv -e env/local.env -- prisma migrate reset --preview-feature",
"migrate:deploy:prod": "dotenv -e env/production.env -- npx prisma migrate deploy --preview-feature",
"migrate:deploy:dev": "dotenv -e env/local.env -- npx prisma migrate deploy --preview-feature",
"migrate:status": "npx prisma migrate status --preview-feature",
"migrate:resolve": "npx prisma migrate resolve --preview-feature",
"prisma:format": "npx prisma format",
"prisma:studio:dev": "dotenv -e env/local.env npx prisma studio",
"prisma:generate": "npx prisma generate",
"prisma:generate:watch": "npx prisma generate --watch",
"postinstall": "npm run prisma:generate",
"prepare": "husky install"
},
"lint-staged": {
"*.{js,ts}": [
"cross-env NODE_ENV=development eslint --cache",
"dotenv -e env/test.env -- cross-env NODE_ENV=test jest --bail --findRelatedTests"
],
"{*.json,.{prettierrc}}": [
"prettier --ignore-path .eslintignore --parser json --write"
],
"*.{html,md,yml}": [
"prettier --ignore-path .eslintignore --single-quote --write"
]
},
"dependencies": {
"@liaoliaots/nestjs-redis": "^9.0.1",
"@nestjs/common": "^9.0.9",
"@nestjs/config": "2.2.0",
"@nestjs/core": "^9.0.9",
"@nestjs/jwt": "^9.0.0",
"@nestjs/passport": "^9.0.0",
"@nestjs/platform-express": "^9.0.9",
"@nestjs/platform-socket.io": "^9.0.9",
"@nestjs/swagger": "^6.0.5",
"@nestjs/throttler": "3.0.0",
"@nestjs/websockets": "^9.0.9",
"@nestjsx/crud": "5.0.0-alpha.3",
"@nestjsx/crud-request": "5.0.0-alpha.3",
"@prisma/client": "4.2.1",
"@socket.io/admin-ui": "^0.4.0",
"@types/multer": "^1.4.7",
"bcrypt": "^5.0.1",
"bcryptjs": "^2.4.3",
"class-transformer": "^0.5.1",
"class-validator": "^0.13.1",
"dotenv": "^16.0.1",
"dotenv-cli": "6.0.0",
"helmet": "^5.1.1",
"ioredis": "^5.2.2",
"multer": "1.4.5-lts.1",
"nanoid": "^3.1.31",
"nestjs-pino": "^3.1.1",
"nodemailer": "^6.7.0",
"passport": "^0.6.0",
"passport-jwt": "^4.0.0",
"pino-http": "^8.2.0",
"pino-pretty": "^8.1.0",
"ramda": "^0.28.0",
"reflect-metadata": "^0.1.12",
"request-ip": "^3.3.0",
"rimraf": "^3.0.2",
"rxjs": "^7.4.0",
"socket.io": "^4.5.1",
"swagger-ui-express": "^4.1.4",
"titlecase": "^1.1.3",
"uuid": "^9.0.0"
},
"devDependencies": {
"@commitlint/cli": "^17.0.3",
"@commitlint/config-conventional": "^17.0.3",
"@nestjs/cli": "^9.0.0",
"@nestjs/schematics": "^9.0.1",
"@nestjs/testing": "^9.0.9",
"@types/bcrypt": "^5.0.0",
"@types/express": "^4.17.13",
"@types/jest": "^28.1.6",
"@types/node": "^18.7.3",
"@types/nodemailer": "^6.4.0",
"@types/passport-jwt": "^3.0.3",
"@types/supertest": "^2.0.11",
"@typescript-eslint/eslint-plugin": "^5.33.0",
"@typescript-eslint/parser": "^5.33.0",
"cross-env": "^7.0.2",
"eslint": "^8.22.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-prettier": "^4.2.1",
"figlet": "^1.5.2",
"husky": "^8.0.1",
"jest": "^28.1.3",
"jest-extended": "3.0.2",
"jest-mock-extended": "2.0.7",
"lint-staged": "^13.0.3",
"prettier": "^2.4.1",
"prisma": "4.2.1",
"source-map-support": "^0.5.20",
"supertest": "^6.1.6",
"ts-jest": "^28.0.7",
"ts-loader": "^9.2.6",
"ts-node": "^10.3.0",
"tsconfig-paths": "^4.1.0",
"typescript": "^4.4.4"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": ".",
"testRegex": ".*\\.spec\\.ts$",
"setupFilesAfterEnv": [
"jest-extended",
"./jest.setup.ts"
],
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"moduleNameMapper": {
"^@/(.*)$": "<rootDir>/src/$1"
},
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"prisma": {
"seed": "ts-node prisma/seed.ts"
}
}