-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
165 lines (165 loc) · 6.65 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
{
"name": "@project-name/source",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"_____dev infra_____": "_____dev infra_____",
"serve:dev": "./node_modules/.bin/nx run-many --exclude=@project-name/source --all -t=serve",
"serve:dev:app-name": "./node_modules/.bin/nx serve app-name --host=0.0.0.0",
"_____prod infra_____": "_____prod infra_____",
"start": "./node_modules/.bin/nx run-many --exclude=@project-name/source --all -t=start",
"build": "npm run generate && npm run tsc:lint && ./node_modules/.bin/nx run-many --exclude=@project-name/source --all -t=build --skip-nx-cache=true",
"start:prod:app-name": "./node_modules/.bin/nx start app-name",
"_____pm2 prod infra_____": "_____pm2 prod infra_____",
"pm2:start": "./node_modules/.bin/pm2 start ./ecosystem.config.json",
"pm2:stop": "./node_modules/.bin/pm2 delete all",
"_____docs_____": "_____docs_____",
"docs:infrastructure": "export NESTJS_MODE=infrastructure && ./node_modules/.bin/nx run-many --exclude=@project-name/source --all -t=serve --parallel=1 -- --watch=false --inspect=false",
"_____tests_____": "_____tests_____",
"test": "./node_modules/.bin/nx run-many --exclude=@project-name/source --all -t=test --skip-nx-cache=true --passWithNoTests --output-style=stream-without-prefixes",
"test:app-name": "./node_modules/.bin/nx test app-name --skip-nx-cache=true --passWithNoTests --output-style=stream-without-prefixes",
"_____lint_____": "_____lint_____",
"lint": "npm run tsc:lint && ./node_modules/.bin/nx run-many --exclude=@project-name/source --all -t=lint",
"lint:fix": "npm run tsc:lint && ./node_modules/.bin/nx run-many --exclude=@project-name/source --all -t=lint --fix",
"tsc:lint": "./node_modules/.bin/tsc --noEmit -p tsconfig.base.json",
"_____utils_____": "_____utils_____",
"generate": "./node_modules/.bin/nx run-many --exclude=@project-name/source --all -t=generate --skip-nx-cache=true && 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 -u",
"rucken": "rucken"
},
"private": true,
"devDependencies": {
"@commitlint/cli": "^17.0.0",
"@commitlint/config-conventional": "^17.0.0",
"@nestjs-mod/schematics": "^2.9.5",
"@nestjs-mod/testing": "2.14.2",
"@nestjs/schematics": "^10.0.1",
"@nestjs/testing": "^10.0.2",
"@nx/jest": "19.5.3",
"@nx/js": "19.5.3",
"@nx/node": "19.5.3",
"@nx/web": "19.5.3",
"@nx/webpack": "19.5.3",
"@nx/workspace": "19.5.3",
"@swc-node/register": "~1.9.1",
"@swc/core": "~1.5.7",
"@swc/helpers": "~0.5.11",
"@theunderscorer/nx-semantic-release": "^2.11.0",
"@types/jest": "^29.4.0",
"@types/node": "~18.16.9",
"fast-glob": "^3.3.2",
"jest": "^29.4.1",
"jest-environment-node": "^29.4.1",
"lint-staged": "^15.2.0",
"nx": "19.5.3",
"prettier": "^2.6.2",
"rucken": "^4.8.1",
"ts-jest": "^29.1.0",
"ts-node": "10.9.1",
"typescript": "~5.5.2",
"verdaccio": "^5.0.4"
},
"lint-staged": {
"*.{js,ts}": "eslint --fix"
},
"scriptsComments": {
"serve:dev": [
"Running NestJS application source code in watch mode"
],
"serve:dev:app-name": [
"Running app-name source code in watch mode"
],
"start": [
"Launching a built NestJS application (you must first build it using the build command)"
],
"build": [
"Building a NestJS application"
],
"start:prod:app-name": [
"Launching a built app-name (you must first build it using the build command)"
],
"pm2:start": [
"Launch all applications in PM2 mode"
],
"pm2:stop": [
"Stop all applications in PM2 mode"
],
"docs:infrastructure": [
"Creation of documentation for the entire infrastructure and creation of files necessary to launch the infrastructure"
],
"test": [
"Running tests across the entire project"
],
"test:app-name": [
"Running tests for app-name"
],
"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": [
"Checking typescript code in libraries"
],
"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)"
]
},
"dependencies": {
"@nestjs-mod/common": "2.14.2",
"@nestjs-mod/pino": "1.14.2",
"@nestjs-mod/pm2": "1.12.2",
"@nestjs-mod/reports": "2.14.2",
"@nestjs-mod/terminus": "1.13.2",
"@nestjs/common": "^10.0.2",
"@nestjs/core": "^10.0.2",
"@nestjs/platform-express": "^10.0.2",
"@nestjs/terminus": "^10.2.3",
"ajv": "^8.17.1",
"axios": "^1.6.0",
"case-anything": "^2.1.13",
"class-validator": "^0.14.0",
"dotenv": ">=16.3.1",
"nestjs-pino": "^4.1.0",
"pino-http": "^10.2.0",
"pino-pretty": "^11.2.2",
"pm2": "^5.3.0",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.8.0",
"tslib": "^2.3.0"
}
}