-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
executable file
·222 lines (222 loc) · 9 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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
{
"name": "@lenne.tech/nest-server-starter",
"version": "10.8.2",
"description": "Starter for lenne.Tech Nest Server",
"keywords": [
"starter",
"lenne.Tech",
"node",
"nest",
"server",
"mongodb",
"graphql",
"typescript"
],
"author": "lenne.Tech <info@lenne.tech> (https://lenne.tech)",
"homepage": "https://lenne.tech",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/lenneTech/nest-server-starter"
},
"bugs": {
"url": "https://github.com/lenneTech/nest-server-starter/issues"
},
"scripts": {
"init": "npm install",
"build": "rimraf dist && tsc -p tsconfig.build.json && npm run copy",
"build:docs": "rimraf dist && tsc -p tsconfig.build.json && npm run docs:ci && npm run copy",
"build:test": "npm run build",
"copy": "npm run copy:assets && npm run copy:config && npm run copy:extras && npm run copy:meta && npm run copy:migrations && npm run copy:public && npm run copy:scripts && npm run copy:spectaql",
"copy:assets": "cpy ./src/assets assets/**/* ./dist/",
"copy:config": "cpy ./src/config.env.ts ./dist/",
"copy:extras": "cpy ./extras ./dist/",
"copy:meta": "rimraf .dist/meta.json && cpy ./package.json --rename=meta.json ./dist/",
"copy:migrations": "cpy ./migrations ./dist/ && cpy ./migrations-utils ./dist/ && cpy ./tsconfig.json ./dist/",
"copy:public": "cpy ./public ./dist/ || true",
"copy:scripts": "cpy ./scripts ./dist/",
"copy:spectaql": "cpy ./spectaql.yml ./dist/",
"dp:dev": "npm run migrate:develop:up && NODE_ENV=develop node ./dist/src/main.js",
"dp:test": "npm run migrate:test:up && NODE_ENV=test node ./dist/src/main.js",
"dp:prod": "npm run migrate:prod:up && NODE_ENV=production node ./dist/src/main.js",
"docs": "npm run docs:ci && open http://127.0.0.1:8080/ && open ./public/index.html && compodoc -p tsconfig.json -s",
"docs:bootstrap": "node extras/update-spectaql-version.mjs && npx -y spectaql ./spectaql.yml",
"docs:ci": "ts-node ./scripts/init-server.ts && npm run docs:bootstrap && compodoc -p tsconfig.json",
"format": "prettier --write 'src/**/*.ts' --ignore-unknown",
"format:check": "prettier --check 'src/**/*.ts' --ignore-unknown",
"format:staged": "npx pretty-quick --staged",
"link:nest-server": "yalc add @lenne.tech/nest-server && yalc link @lenne.tech/nest-server && npm install",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix --cache",
"migrate:create": "migrate create --template-file ./migrations-utils/template.ts --migrations-dir=\"./migrations\" --compiler=\"ts:./migrations-utils/ts-compiler.js\"",
"migrate:up": "migrate --store=./migrations-utils/migrate.js --migrations-dir=\"./migrations\" --compiler=\"ts:./migrations-utils/ts-compiler.js\" up",
"migrate:develop:up": "NODE_ENV=develop migrate --store=./migrations-utils/migrate.js --migrations-dir=\"./migrations\" --compiler=\"ts:./migrations-utils/ts-compiler.js\" up",
"migrate:test:up": "NODE_ENV=test migrate --store=./migrations-utils/migrate.js --migrations-dir=\"./migrations\" --compiler=\"ts:./migrations-utils/ts-compiler.js\" up",
"migrate:preview:up": "NODE_ENV=preview migrate --store=./migrations-utils/migrate.js --migrations-dir=\"./migrations\" --compiler=\"ts:./migrations-utils/ts-compiler.js\" up",
"migrate:prod:up": "NODE_ENV=production migrate --store=./migrations-utils/migrate.js --migrations-dir=\"./migrations\" --compiler=\"ts:./migrations-utils/ts-compiler.js\" up",
"prepublishOnly": "npm run lint && npm run test:e2e",
"prestart:prod": "rimraf dist && npm run build",
"preversion": "npm run lint",
"reinit": "rimraf package-lock.json && rimraf node_modules && npm i && npm run lint && npm run test:e2e && npm run build",
"reinit:clean": "rimraf package-lock.json && rimraf node_modules && npm cache clean --force && npm i && npm run test:e2e && npm run build",
"release": "standard-version",
"release:minor": "standard-version --release-as minor",
"release:major": "standard-version --release-as major",
"start": "npm run migrate:up && npm run start:local",
"start:debug": "nodemon --config nodemon-debug.json",
"start:dev": "nodemon",
"start:dev:swc": "nest start -b swc -w --type-check",
"start:local": "NODE_ENV=local nodemon",
"start:local:swc": "NODE_ENV=local nest start -b swc -w --type-check",
"start:nodemon": "ts-node -r tsconfig-paths/register src/main.ts",
"start:prod": "./node_modules/.bin/grunt production",
"stop": "./node_modules/.bin/pm2 delete nest",
"test": "npm run test:e2e",
"test:ci": "npm run test:e2e:ci",
"test:cov": "NODE_ENV=local jest --coverage --forceExit",
"test:debug": "NODE_ENV=local node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand --forceExit",
"test:e2e": "NODE_ENV=local jest --config jest-e2e.json --forceExit",
"test:e2e:ci": "NODE_ENV=ci jest --config jest-e2e.json --forceExit",
"test:e2e-cov": "NODE_ENV=local jest --config jest-e2e.json --coverage --forceExit",
"test:e2e-doh": "NODE_ENV=local jest --config jest-e2e.json --forceExit --detectOpenHandles",
"test:watch": "NODE_ENV=local jest --watch",
"unlink:nest-server": "yalc remove @lenne.tech/nest-server && npm install",
"update": "node extras/sync-packages.mjs"
},
"engines": {
"node": ">= 20"
},
"dependencies": {
"@apollo/gateway": "2.9.3",
"@apollo/server": "4.11.2",
"@getbrevo/brevo": "1.0.1",
"@lenne.tech/mongoose-gridfs": "1.4.2",
"@lenne.tech/multer-gridfs-storage": "5.0.6",
"@lenne.tech/nest-server": "10.8.2",
"@nestjs/apollo": "12.2.2",
"@nestjs/common": "10.4.15",
"@nestjs/core": "10.4.15",
"@nestjs/graphql": "12.2.2",
"@nestjs/jwt": "10.2.0",
"@nestjs/mongoose": "10.1.0",
"@nestjs/passport": "10.0.3",
"@nestjs/platform-express": "10.4.15",
"@nestjs/schedule": "4.1.2",
"@nestjs/terminus": "10.2.3",
"@nodepit/migrate-state-store-mongodb": "5.1.0",
"apollo-server-core": "3.13.0",
"apollo-server-express": "3.13.0",
"bcrypt": "5.1.1",
"class-transformer": "0.5.1",
"class-validator": "0.14.1",
"compression": "1.7.5",
"cookie-parser": "1.4.7",
"dotenv": "16.4.7",
"ejs": "3.1.10",
"graphql": "16.9.0",
"graphql-query-complexity": "1.0.0",
"graphql-subscriptions": "3.0.0",
"graphql-upload": "15.0.2",
"js-sha256": "0.11.0",
"json-to-graphql-query": "2.3.0",
"light-my-request": "6.3.0",
"lodash": "4.17.21",
"migrate": "2.1.0",
"mongodb": "6.11.0",
"mongoose": "7.8.3",
"mongoose-gridfs": "1.3.0",
"multer": "1.4.5-lts.1",
"multer-gridfs-storage": "5.0.2",
"node-mailjet": "6.0.6",
"nodemailer": "6.9.16",
"nodemon": "3.1.7",
"passport": "0.7.0",
"passport-jwt": "4.0.1",
"reflect-metadata": "0.2.2",
"rfdc": "1.4.1",
"rimraf": "6.0.1",
"rxjs": "7.8.1",
"yuml-diagram": "1.2.0"
},
"devDependencies": {
"@babel/plugin-proposal-private-methods": "7.18.6",
"@compodoc/compodoc": "1.1.26",
"@lenne.tech/eslint-config-ts": "0.0.16",
"@nestjs/cli": "10.4.9",
"@nestjs/schematics": "10.2.3",
"@nestjs/testing": "10.4.15",
"@swc/cli": "0.5.2",
"@swc/core": "1.10.1",
"@swc/jest": "0.2.37",
"@types/compression": "1.7.5",
"@types/cookie-parser": "1.4.8",
"@types/cron": "2.4.3",
"@types/ejs": "3.1.5",
"@types/express": "4.17.21",
"@types/jest": "29.5.14",
"@types/lodash": "4.17.13",
"@types/multer": "1.4.12",
"@types/node": "22.10.1",
"@types/node-mailjet": "3.3.12",
"@types/nodemailer": "6.4.17",
"@types/passport": "1.0.17",
"@types/supertest": "6.0.2",
"@typescript-eslint/eslint-plugin": "6.21.0",
"@typescript-eslint/parser": "6.21.0",
"coffeescript": "2.7.0",
"cpy-cli": "5.0.0",
"eslint": "8.57.1",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-unused-imports": "4.1.4",
"find-file-up": "2.0.1",
"grunt": "1.6.1",
"grunt-bg-shell": "2.3.3",
"grunt-contrib-clean": "2.0.1",
"grunt-contrib-watch": "1.1.0",
"grunt-sync": "0.8.2",
"husky": "9.1.7",
"jest": "29.7.0",
"npm-watch": "0.13.0",
"pm2": "5.4.3",
"prettier": "3.4.2",
"pretty-quick": "4.0.0",
"semver": "7.6.3",
"standard-version": "9.5.0",
"supertest": "7.0.0",
"ts-jest": "29.2.5",
"ts-loader": "9.5.1",
"ts-morph": "24.0.0",
"ts-node": "10.9.2",
"tsconfig-paths": "4.2.0",
"typescript": "5.7.2",
"yalc": "1.0.0-pre.53"
},
"overrides": {
"multer-gridfs-storage": {
"multer": "$multer"
},
"@lykmapipo/common": {
"flat": "5.0.2",
"mime": "2.6.0"
}
},
"jest": {
"collectCoverage": true,
"coverageDirectory": "../coverage",
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"testEnvironment": "node",
"testRegex": ".spec.ts$",
"transform": {
".+\\.(t|j)s$": "ts-jest"
}
},
"main": "dist/main.js",
"types": "dist/main.d.ts",
"files": [
"dist"
]
}