-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpackage.json
More file actions
172 lines (172 loc) · 7.12 KB
/
package.json
File metadata and controls
172 lines (172 loc) · 7.12 KB
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
{
"name": "template-service",
"version": "0.0.1",
"description": "NestJS monorepo for template service with control panel and deployment agents",
"author": "",
"private": true,
"license": "UNLICENSED",
"scripts": {
"clean": "rm -rf dist",
"build:apps": "npm run clean && npm run build:control-panel-app && npm run build:agent-app",
"build:control-panel-app": "nest build control-panel-app",
"build:console-app": "npm run clean && cd console-app && npm run build",
"build:agent-app": "nest build agent-app",
"start": "nest start",
"start:console-app:dev": "npm run clean && cd console-app && npm run dev",
"start:console-app": "npm run clean && cd console-app && npm run build && npm run start",
"start:control-panel-app": "nest start control-panel-app",
"start:control-panel-app:dev": "nest start control-panel-app --watch",
"start:control-panel-app:prod": "node dist/apps/control-panel-app/src/main",
"start:agent-app": "nest start agent-app",
"start:agent-app:dev": "nest start agent-app --watch",
"start:agent-app:prod": "node dist/apps/agent-app/src/main",
"format": "prettier --write \"apps/**/*.ts\" \"libs/**/*.ts\" \"test/**/*.ts\"",
"lint": "eslint \"{apps,libs,test}/**/*.ts\" --fix",
"e2e:hetzner": "bash scripts/e2e/validate-on-hetzner.sh",
"e2e:hetzner:list": "bash scripts/e2e/validate-on-hetzner.sh --list",
"e2e:hetzner:all": "bash scripts/e2e/validate-all-on-hetzner.sh",
"lint:ci": "eslint \"{apps,libs,test}/**/*.ts\" --max-warnings 0",
"console-app:lint": "eslint console-app/**/*.ts --fix",
"console-app:lint:ci": "eslint console-app/**/*.ts --max-warnings 0",
"test": "jest",
"test:templates": "jest --testPathPatterns=template-compose",
"prereq:agent": "bash apps/control-panel-app/scripts/ensure-agent-prerequisites.sh",
"prereq:agent:check": "bash apps/control-panel-app/scripts/ensure-agent-prerequisites.sh --check-only",
"seed": "npm run build:apps && node dist/apps/control-panel-app/seeders/seed.js",
"seed:prod": "node dist/apps/control-panel-app/seeders/seed.js",
"migration:create": "ts-node -r tsconfig-paths/register ./node_modules/typeorm/cli.js migration:create apps/control-panel-app/migrations/$npm_config_name",
"migration:generate": "ts-node -r tsconfig-paths/register ./node_modules/typeorm/cli.js migration:generate apps/control-panel-app/migrations/GeneratedMigration -d apps/control-panel-app/config/typeorm.config.ts",
"migration:run": "ts-node -r tsconfig-paths/register ./node_modules/typeorm/cli.js migration:run -d apps/control-panel-app/config/typeorm.config.ts",
"migration:revert": "ts-node -r tsconfig-paths/register ./node_modules/typeorm/cli.js migration:revert -d apps/control-panel-app/config/typeorm.config.ts",
"migration:run:dist": "node ./node_modules/typeorm/cli.js migration:run -d dist/apps/control-panel-app/config/typeorm.config.js",
"migration:revert:dist": "node ./node_modules/typeorm/cli.js migration:revert -d dist/apps/control-panel-app/config/typeorm.config.js",
"migration:show": "ts-node -r tsconfig-paths/register ./node_modules/typeorm/cli.js migration:show -d apps/control-panel-app/config/typeorm.config.ts",
"migration:show:dist": "node ./node_modules/typeorm/cli.js migration:show -d dist/apps/control-panel-app/config/typeorm.config.js",
"docker:build:control-panel": "docker compose -f apps/control-panel-app/docker-compose.yml build",
"docker:build:agent": "docker compose -f apps/agent-app/docker-compose.yml build",
"docker:build:spa": "docker compose -f console-app/docker-compose.yml build",
"docker:build": "npm run docker:build:control-panel && npm run docker:build:agent && npm run docker:build:spa",
"docker:up:control-panel": "docker compose -f apps/control-panel-app/docker-compose.yml up -d",
"docker:up:agent": "docker compose -f apps/agent-app/docker-compose.yml up -d",
"prepare": "husky",
"deploy": "wrangler deploy",
"preview": "wrangler dev"
},
"lint-staged": {
"*.{ts,js}": [
"eslint --fix",
"prettier --write"
],
"*.{json,md,yml,yaml}": [
"prettier --write"
]
},
"dependencies": {
"@nestjs/common": "^11.0.1",
"@nestjs/config": "^4.0.4",
"@nestjs/core": "^11.0.1",
"@nestjs/jwt": "^11.0.2",
"@nestjs/mapped-types": "*",
"@nestjs/passport": "^11.0.5",
"@nestjs/platform-express": "^11.0.1",
"@nestjs/platform-socket.io": "^11.1.20",
"@nestjs/typeorm": "^11.0.1",
"@nestjs/websockets": "^11.1.20",
"bcrypt": "^6.0.0",
"class-transformer": "^0.5.1",
"class-validator": "^0.15.1",
"cookie-parser": "^1.4.7",
"dayjs": "^1.11.20",
"dotenv": "^17.4.2",
"js-yaml": "^4.1.1",
"jsonwebtoken": "^9.0.3",
"passport": "^0.7.0",
"passport-jwt": "^4.0.1",
"pg": "^8.20.0",
"redis": "^5.12.1",
"reflect-metadata": "^0.2.2",
"rxjs": "^7.8.1",
"socket.io": "^4.8.3",
"socket.io-client": "^4.8.3",
"ssh2": "^1.17.0",
"typeorm": "^1.0.0"
},
"devDependencies": {
"@commitlint/cli": "^21.0.1",
"@commitlint/config-conventional": "^21.0.1",
"@eslint/eslintrc": "^3.2.0",
"@eslint/js": "^9.18.0",
"@nestjs/cli": "^11.0.0",
"@nestjs/schematics": "^11.0.0",
"@nestjs/testing": "^11.0.1",
"@types/bcrypt": "^6.0.0",
"@types/cookie-parser": "^1.4.10",
"@types/express": "^5.0.0",
"@types/jest": "^30.0.0",
"@types/js-yaml": "^4.0.9",
"@types/jsonwebtoken": "^9.0.10",
"@types/node": "^24.12.4",
"@types/passport": "^1.0.17",
"@types/passport-jwt": "^4.0.1",
"@types/ssh2": "^1.15.5",
"@types/supertest": "^7.0.0",
"eslint": "^9.18.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-prettier": "^5.2.2",
"globals": "^17.0.0",
"husky": "^9.1.7",
"jest": "^30.4.2",
"lint-staged": "^17.0.5",
"prettier": "^3.8.3",
"source-map-support": "^0.5.21",
"supertest": "^7.0.0",
"ts-jest": "^29.4.10",
"ts-loader": "^9.5.2",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"typescript": "^6.0.3",
"typescript-eslint": "^8.20.0",
"wrangler": "^4.97.0"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": ".",
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.ts$": [
"ts-jest",
{
"tsconfig": {
"types": [
"jest",
"node"
]
}
}
]
},
"collectCoverageFrom": [
"apps/**/*.(t|j)s",
"libs/**/*.(t|j)s"
],
"coverageDirectory": "./coverage",
"testEnvironment": "node",
"roots": [
"<rootDir>/apps/",
"<rootDir>/libs/"
],
"moduleNameMapper": {
"^@shared/common$": "<rootDir>/libs/common/src",
"^@shared/common/(.*)$": "<rootDir>/libs/common/src/$1",
"^@common/(.*)$": "<rootDir>/libs/common/src/$1",
"^@socket-events/(.*)$": "<rootDir>/libs/socket-events/src/$1",
"^@shared-types/(.*)$": "<rootDir>/libs/shared-types/src/$1",
"^@control-panel/(.*)$": "<rootDir>/apps/control-panel-app/src/$1",
"^@control-panel$": "<rootDir>/apps/control-panel-app/src"
}
}
}