-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
404 lines (404 loc) · 18.1 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
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
{
"name": "@nestjs-mod-fullstack/source",
"version": "0.0.25",
"license": "MIT",
"scripts": {
"_____pm2-full dev infra_____": "_____pm2-full dev infra_____",
"pm2-full:dev:start": "npm run generate && npm run docker-compose:start-prod:server && npm run db:create-and-fill && npm run pm2:dev:start",
"pm2-full:dev:stop": "npm run docker-compose:stop-prod:server && npm run pm2:dev:stop",
"pm2-full:dev:test:e2e": "npm run test:e2e",
"_____dev infra_____": "_____dev infra_____",
"serve:dev": "./node_modules/.bin/nx run-many --all -t=serve --skip-nx-cache=true",
"serve:dev:server": "./node_modules/.bin/nx serve server --skip-nx-cache=true",
"serve:dev:client": "./node_modules/.bin/nx serve client --skip-nx-cache=true",
"_____pm2 dev infra_____": "_____pm2 dev infra_____",
"pm2:dev:start": "./node_modules/.bin/pm2 start ./ecosystem.config.json && npm run wait-on -- --log http://localhost:3000/api/health --log http://localhost:4200",
"pm2:dev:stop": "./node_modules/.bin/pm2 delete all",
"_____pm2-full prod infra_____": "_____pm2-full prod infra_____",
"pm2-full:prod:start": "npm run build:prod && ./node_modules/.bin/nx run client:build:development --skip-nx-cache=true && npm run docker-compose:start-prod:server && npm run db:create-and-fill && npm run pm2:start",
"pm2-full:prod:stop": "npm run docker-compose:stop-prod:server && npm run pm2:stop",
"pm2-full:prod:test:e2e": "export BASE_URL=http://localhost:3000 && npm run test:e2e",
"_____prod infra_____": "_____prod infra_____",
"start": "./node_modules/.bin/nx run-many --all -t=start",
"build": "npm run generate && ./node_modules/.bin/nx run-many -p app-rest-sdk server client --all -t=build",
"build:prod": "npm run generate && chmod -R augo+rw libs apps dist && ./node_modules/.bin/nx run-many -p app-rest-sdk server client --all -t=build -c production --parallel=1",
"_____pm2 prod infra_____": "_____pm2 prod infra_____",
"pm2:start": "./node_modules/.bin/pm2 start ./ecosystem-prod.config.json && npm run wait-on -- --log http://localhost:3000/api/health --log http://localhost:3000",
"pm2:stop": "./node_modules/.bin/pm2 delete all",
"_____docker-compose-full prod infra_____": "_____docker-compose-full prod infra_____",
"docker-compose-full:prod:build": ". .docker/set-env.sh && .docker/build-images.sh",
"docker-compose-full:prod:start": "npm run docker-compose-full:prod:build && npm run docker-compose-full:prod:only-start",
"docker-compose-full:prod:stop": ". .docker/set-env.sh && docker compose -f ./.docker/docker-compose-full.yml --env-file ./.docker/docker-compose-full.env --compatibility down",
"docker-compose-full:prod:only-start": ". .docker/set-env.sh && docker compose -f ./.docker/docker-compose-full.yml --env-file ./.docker/docker-compose-full.env --compatibility up -d",
"docker-compose-full:prod:test:e2e": ". .docker/set-env.sh && export BASE_URL=http://localhost:8080 && npm run test:e2e",
"_____docs_____": "_____docs_____",
"docs:infrastructure": "export NESTJS_MODE=infrastructure && ./node_modules/.bin/nx run-many --exclude=client* --all -t=serve --parallel=1 -- --watch=false --inspect=false",
"_____docker-compose infra_____": "_____docker-compose infra_____",
"docker-compose:start:server": "export COMPOSE_INTERACTIVE_NO_CLI=1 && docker compose -f ./apps/server/docker-compose.yml --compatibility up -d",
"docker-compose:stop:server": "export COMPOSE_INTERACTIVE_NO_CLI=1 && docker compose -f ./apps/server/docker-compose.yml down",
"_____docker-compose prod-infra_____": "_____docker-compose prod-infra_____",
"docker-compose:start-prod:server": "export COMPOSE_INTERACTIVE_NO_CLI=1 && docker compose -f ./apps/server/docker-compose-prod.yml --env-file ./apps/server/docker-compose-prod.env --compatibility up -d",
"docker-compose:stop-prod:server": "export COMPOSE_INTERACTIVE_NO_CLI=1 && docker compose -f ./apps/server/docker-compose-prod.yml --env-file ./apps/server/docker-compose-prod.env down",
"_____tests_____": "_____tests_____",
"test": "export CI=true && ./node_modules/.bin/nx run-many --all -t=test --skip-nx-cache=true --passWithNoTests --output-style=stream-without-prefixes",
"test:e2e": "export CI=true && ./node_modules/.bin/nx run-many --all -t=e2e --skip-nx-cache=true --output-style=stream-without-prefixes",
"test:server": "./node_modules/.bin/nx test server --skip-nx-cache=true --passWithNoTests --output-style=stream-without-prefixes",
"_____lint_____": "_____lint_____",
"lint": "npm run tsc:lint && ./node_modules/.bin/nx run-many --all -t=lint --parallel=1",
"lint:fix": "npm run tsc:lint && ./node_modules/.bin/nx run-many --all -t=lint --parallel=1 --fix",
"tsc:lint": "./node_modules/.bin/tsc --noEmit -p tsconfig.base.json",
"_____kubernetes_____": "_____kubernetes_____",
"kubernetes:generate": "rm -rf ./.kubernetes/generated && . .kubernetes/set-env.sh && npm run rucken copy-paste -- --find=templates --replace=generated --replace-plural=generated --path=./.kubernetes/templates --replace-envs=true",
"_____db_____": "_____db_____",
"db:create": "./node_modules/.bin/nx run-many -t=db-create",
"db:create-and-fill": "npm run db:create && npm run flyway:migrate",
"_____flyway_____": "_____flyway_____",
"flyway:create:server": "./node_modules/.bin/nx run server:flyway-create-migration",
"flyway:migrate:server": "./node_modules/.bin/nx run server:flyway-migrate",
"flyway:migrate": "./node_modules/.bin/nx run-many -t=flyway-migrate",
"flyway:create:webhook": "./node_modules/.bin/nx run webhook:flyway-create-migration",
"flyway:migrate:webhook": "./node_modules/.bin/nx run webhook:flyway-migrate",
"flyway:create:auth": "./node_modules/.bin/nx run auth:flyway-create-migration",
"flyway:migrate:auth": "./node_modules/.bin/nx run auth:flyway-migrate",
"_____prisma_____": "_____prisma_____",
"prisma:pull:server": "./node_modules/.bin/nx run server:prisma-pull",
"prisma:pull": "./node_modules/.bin/nx run-many -t=prisma-pull --skip-nx-cache=true",
"prisma:generate": "./node_modules/.bin/nx run-many -t=prisma-generate --parallel=1",
"prisma:pull:webhook": "./node_modules/.bin/nx run webhook:prisma-pull",
"prisma:pull:auth": "./node_modules/.bin/nx run auth:prisma-pull",
"_____utils_____": "_____utils_____",
"generate": "./node_modules/.bin/nx run-many --verbose --all -t=generate --parallel=1 && npm run make-ts-list && npm run lint:fix",
"tsc": "tsc",
"nx": "nx",
"dep-graph": "./node_modules/.bin/nx dep-graph",
"make-ts-list": "./node_modules/.bin/rucken make-ts-list",
"manual:prepare": "npm run generate && npm run docs:infrastructure && npm run test",
"update:nestjs-mod-versions": "npx -y npm-check-updates @nestjs-mod/* nestjs-mod @nestjs/* nestjs rucken -u",
"rucken": "rucken",
"translates": "./node_modules/.bin/rucken prepare --locales=en,ru --update-package-version=false",
"wait-on": "./node_modules/.bin/wait-on --timeout=240000 --interval=1000 --window --verbose",
"prepare": "npx -y husky install"
},
"private": true,
"devDependencies": {
"@angular-devkit/build-angular": "19.0.6",
"@angular-devkit/core": "19.0.6",
"@angular-devkit/schematics": "19.0.6",
"@angular-eslint/eslint-plugin": "19.0.2",
"@angular-eslint/eslint-plugin-template": "19.0.2",
"@angular-eslint/template-parser": "19.0.2",
"@angular/cli": "~19.0.0",
"@angular/compiler-cli": "19.0.5",
"@angular/language-service": "19.0.5",
"@brakebein/prisma-generator-nestjs-dto": "^1.24.0-beta5",
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@nestjs-mod/schematics": "^2.12.1",
"@nestjs-mod/testing": "2.17.0",
"@nestjs/schematics": "^10.2.3",
"@nestjs/testing": "^10.4.15",
"@nx/angular": "20.3.0",
"@nx/devkit": "20.3.0",
"@nx/eslint": "20.3.0",
"@nx/eslint-plugin": "20.3.0",
"@nx/jest": "20.3.0",
"@nx/js": "20.3.0",
"@nx/node": "20.3.0",
"@nx/playwright": "20.3.0",
"@nx/web": "20.3.0",
"@nx/webpack": "20.3.0",
"@nx/workspace": "20.3.0",
"@openapitools/openapi-generator-cli": "^2.15.3",
"@playwright/test": "^1.48.2",
"@schematics/angular": "19.0.6",
"@swc-node/register": "~1.10.9",
"@swc/core": "~1.9.2",
"@swc/helpers": "~0.5.15",
"@theunderscorer/nx-semantic-release": "^2.12.0",
"@types/jest": "29.5.13",
"@types/lodash": "^4.17.10",
"@types/node": "~18.16.9",
"@typescript-eslint/eslint-plugin": "^7.16.0",
"@typescript-eslint/parser": "^7.16.0",
"@typescript-eslint/utils": "^7.16.0",
"autoprefixer": "^10.4.0",
"browser-sync": "^3.0.0",
"eslint": "~8.57.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-playwright": "^0.15.3",
"fast-glob": "^3.3.2",
"husky": "^9.1.6",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"jest-environment-node": "^29.7.0",
"jest-preset-angular": "14.4.2",
"jsonc-eslint-parser": "^2.1.0",
"lint-staged": "^15.2.10",
"ng-packagr": "19.0.1",
"node-flywaydb": "^3.0.7",
"nx": "20.3.0",
"postcss": "^8.4.5",
"postcss-url": "~10.1.3",
"prettier": "^2.6.2",
"prisma": "^5.22.0",
"rucken": "^4.12.0",
"string-replace-loader": "3.1.0",
"tailwindcss": "^3.4.15",
"ts-jest": "^29.1.0",
"ts-node": "10.9.1",
"typescript": "5.6.3",
"verdaccio": "^5.0.4"
},
"lint-staged": {
"*.{js,ts}": "eslint --fix",
"*.{js,ts,css,scss,md}": "prettier --ignore-unknown --write",
"*.js": "eslint --cache --fix"
},
"scriptsComments": {
"pm2-full:dev:start": [
"Launching infrastructure and all applications in watch mode via PM2"
],
"pm2-full:dev:stop": [
"Stopping infrastructure and all applications in watch mode via PM2"
],
"pm2-full:dev:test:e2e": [
"Running E2E tests for all applications in PM2 dev mode"
],
"serve:dev": [
"Running NestJS application source code in watch mode"
],
"serve:dev:server": [
"Running server source code in watch mode"
],
"serve:dev:client": [],
"pm2:dev:start": [
"Launching all applications in watch mode via PM2"
],
"pm2:dev:stop": [
"Stopping all applications in watch mode via PM2"
],
"pm2-full:prod:start": [
"Launching the infrastructure and building all applications, followed by launching them via PM2"
],
"pm2-full:prod:stop": [
"Stopping infrastructure and all applications running through PM2"
],
"pm2-full:prod:test:e2e": [
"Running E2E tests for all applications in PM2 prod mode"
],
"start": [
"Launching a built NestJS application (you must first build it using the build command)"
],
"build": [
"Building a NestJS application"
],
"build:prod": [
"Building a NestJS application in prod mode"
],
"pm2:start": [
"Launch all applications in PM2 mode"
],
"pm2:stop": [
"Stop all applications in PM2 mode"
],
"docker-compose-full:prod:build": [
"Building Docker images"
],
"docker-compose-full:prod:start": [
"Build and launching Docker Compose infrastructure with a backend in the form of a Docker container and frontend statics transmitted via Nginx"
],
"docker-compose-full:prod:stop": [
"Stopping Docker Compose infrastructure and all applications"
],
"docker-compose-full:prod:only-start": [
"Launching Docker Compose infrastructure with a backend in the form of a Docker container and frontend statics transmitted via Nginx"
],
"docker-compose-full:prod:test:e2e": [
"Launching E2E tests on an application launched via Docker Compose"
],
"docs:infrastructure": [
"Creation of documentation for the entire infrastructure and creation of files necessary to launch the infrastructure"
],
"docker-compose:start:server": [
"Running the docker-compose infrastructure for server"
],
"docker-compose:stop:server": [
"Stopping the docker-compose infrastructure for server"
],
"docker-compose:start-prod:server": [
"Running the main docker-compose prod infrastructure for server"
],
"docker-compose:stop-prod:server": [
"Stopping the main docker-compose prod infrastructure for server"
],
"test": [
"Running tests across the entire project"
],
"test:e2e": [
"Running E2E tests for all applications"
],
"test:server": [
"Running tests for server"
],
"lint": [
"Checking the typescript code for the entire project"
],
"lint:fix": [
"Checking the typescript code throughout the project and trying to fix everything possible"
],
"tsc:lint": [],
"kubernetes:generate": [],
"db:create": [
"Creation all databases of applications and modules"
],
"db:create-and-fill": [
"Create and fill databases"
],
"flyway:create:server": [
"Command to create new empty migration for server, for set name pass name to --args, example: npm run flyway:create:appname --args=Init"
],
"flyway:migrate:server": [
"Applying migrations for server"
],
"flyway:migrate": [
"Applying migrations of all applications and modules"
],
"flyway:create:webhook": [
"Command to create new empty migration for webhook, for set name pass name to --args, example: npm run flyway:create:appname --args=Init"
],
"flyway:migrate:webhook": [
"Applying migrations for webhook"
],
"flyway:create:auth": [
"Command to create new empty migration for auth, for set name pass name to --args, example: npm run flyway:create:appname --args=Init"
],
"flyway:migrate:auth": [
"Applying migrations for auth"
],
"prisma:pull:server": [
"Generating a prisma schema based on a database for server"
],
"prisma:pull": [
"Generating a prisma schema based on a database"
],
"prisma:generate": [
"Generation of client prisma schema of all applications and modules"
],
"prisma:pull:webhook": [
"Generating a prisma schema based on a database for webhook"
],
"prisma:pull:auth": [
"Generating a prisma schema based on a database for auth"
],
"generate": [
"Running the \"generate\" nx command in applications and libraries which can be customized at your discretion",
"automatically generating an index.ts file for each library",
"checking the code and trying to fix it"
],
"tsc": [
"Alias for running the tsc version locally, which is in the project (example: `npm run tsc -- --noEmit -p tsconfig.base.json`),",
"in order not to install tsc globally in the operating system"
],
"nx": [
"Alias for running the nx version locally, which is in the project (example: `./node_modules/.bin/nx dep-graph`),",
"in order not to install nx globally in the operating system"
],
"dep-graph": [
"Generating dependency diagrams for nx applications and libraries"
],
"make-ts-list": [
"Automatically generating an index.ts file for each library,",
"works only for nx applications created using the `--projectNameAndRootFormat=as-provided` flag"
],
"manual:prepare": [
"Preparing code, building code, creating infrastructure documentation",
"and all the files necessary to raise the infrastructure and running tests (generate, build, docs:infrastructure, test)"
],
"update:nestjs-mod-versions": [
"Updating NestJS-mod libraries"
],
"rucken": [
"Alias for console tools and scripts for nx and not only use to automate the workflow and",
"speed up the development process (example: `npm run rucken -- make-ts-list`, site: https://www.npmjs.com/package/rucken)"
],
"translates": [],
"wait-on": [
"Utility for checking and waiting for site availability"
],
"prepare": []
},
"dependencies": {
"@angular/animations": "19.0.5",
"@angular/common": "19.0.5",
"@angular/compiler": "19.0.5",
"@angular/core": "19.0.5",
"@angular/forms": "19.0.5",
"@angular/platform-browser": "19.0.5",
"@angular/platform-browser-dynamic": "19.0.5",
"@angular/platform-server": "19.0.5",
"@angular/router": "19.0.5",
"@angular/ssr": "19.0.6",
"@authorizerdev/authorizer-js": "^2.0.3",
"@faker-js/faker": "^9.2.0",
"@jsverse/transloco": "^7.5.0",
"@jsverse/transloco-keys-manager": "^6.0.0",
"@jsverse/transloco-locale": "^7.0.1",
"@jsverse/transloco-messageformat": "^7.0.1",
"@nestjs-mod/authorizer": "^1.4.2",
"@nestjs-mod/cache-manager": "^1.5.4",
"@nestjs-mod/common": "2.17.0",
"@nestjs-mod/docker-compose": "^1.16.2",
"@nestjs-mod/flyway": "^1.7.3",
"@nestjs-mod/minio": "^1.3.4",
"@nestjs-mod/pino": "1.14.4",
"@nestjs-mod/pm2": "1.12.4",
"@nestjs-mod/prisma": "^1.10.4",
"@nestjs-mod/reports": "2.17.0",
"@nestjs-mod/terminus": "1.13.4",
"@nestjs/axios": "^3.1.3",
"@nestjs/common": "^10.4.15",
"@nestjs/core": "^10.4.15",
"@nestjs/platform-express": "^10.4.15",
"@nestjs/platform-socket.io": "^10.4.15",
"@nestjs/platform-ws": "^10.4.15",
"@nestjs/serve-static": "^4.0.2",
"@nestjs/swagger": "^8.1.0",
"@nestjs/terminus": "^10.2.3",
"@nestjs/websockets": "^10.4.15",
"@ngneat/until-destroy": "^10.0.0",
"@ngx-formly/core": "^6.3.12",
"@ngx-formly/ng-zorro-antd": "^6.3.12",
"@prisma/client": "^5.22.0",
"ajv": "^8.17.1",
"axios": "^1.7.7",
"cache-manager": "^5.7.6",
"cache-manager-redis-yet": "^5.1.5",
"case-anything": "^2.1.13",
"class-transformer": "^0.5.1",
"class-transformer-global-storage": "0.4.1-1",
"class-validator": "^0.14.1",
"class-validator-multi-lang": "^0.140.1",
"date-fns": "^4.1.0",
"dotenv": "^16.4.5",
"env-var": "^7.5.0",
"express": "~4.21.1",
"lodash": "^4.17.21",
"minio": "^8.0.2",
"nestjs-minio": "^2.6.2",
"nestjs-pino": "^4.1.0",
"nestjs-translates": "^2.0.1",
"ng-zorro-antd": "^19.0.0",
"pino-http": "^10.3.0",
"pino-pretty": "^13.0.0",
"pm2": "^5.4.3",
"redis": "^4.7.0",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.8.0",
"tslib": "^2.3.0",
"wait-on": "^8.0.1",
"zone.js": "0.15.0"
},
"nx": {
"includedScripts": []
}
}