-
Notifications
You must be signed in to change notification settings - Fork 17
/
package.json
337 lines (337 loc) · 14 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
{
"name": "schulcloud-server",
"description": "dBildungscloud server",
"homepage": "https://dBildungscloud.de/",
"main": "src/",
"keywords": [
"feathers",
"nest",
"jest",
"domain driven design"
],
"license": "AGPL-3.0",
"repository": {},
"author": {
"name": "dBildungscloud Team"
},
"contributors": [],
"bugs": {},
"engines": {
"node": "22",
"npm": ">=9"
},
"mikro-orm": {
"useTsNode": true,
"configPaths": [
"./apps/server/src/config/mikro-orm-cli.config.ts",
"./dist/server/config/mikro-orm-cli.config.js"
]
},
"scripts": {
"lint": "eslint . --ignore-path .gitignore",
"test": "npm run nest:test && npm run feathers:test",
"feathers:test": "cross-env NODE_ENV=test npm run setup:db:seed && npm run nest:build && npm run coverage",
"feathers:test-inspect": "cross-env NODE_ENV=test npm run setup:db:seed && npm run mocha-inspect",
"setup": "command removed - check npm run setup:db:seed instead!",
"setup:db": "DEPRECATED - check npm run setup:db:seed instead!",
"setup:db:seed": "npm run nest:start:console -- database seed",
"setup:idm:seed": "npm run nest:start:console -- idm seed",
"setup:idm:configure": "npm run nest:start:console -- idm configure",
"setup:idm": "npm run setup:idm:seed && npm run setup:idm:configure",
"build": "npm run nest:build",
"postinstall": "node ./esbuild/esmodules-bundler.js",
"copy-files": "copyfiles src/**/*.yaml build",
"inspect": "npm run build && node --inspect=5959 build/src/",
"inspect-container": "npm run build && node --inspect=0.0.0.0:5959 build/src/",
"start": "npm run nest:start:prod",
"coverage": "cross-env NODE_ENV=test nyc npm run mocha",
"mocha": "cross-env NODE_ENV=test mocha --exit --timeout 15000",
"mocha-watch": "cross-env NODE_ENV=test mocha",
"mocha-inspect": "cross-env NODE_ENV=test mocha --inspect --no-timeout --exit",
"mocha-metrics": "cross-env NODE_ENV=test mocha \"test/routes/*.metrics.js\" --exclude \"{test,src}/**/*.test.{js,ts}\" --no-timeout --exit",
"migration:up": "npm run nest:start:console -- database migration --up",
"migration:down": "npm run nest:start:console -- database migration --down",
"migration:pending": "npm run nest:start:console -- database migration --pending",
"migration:persisted": "npm run nest:start:console -- database export --collection migrations --override",
"nest:prebuild": "rimraf dist",
"nest:build": "nest build",
"nest:build:all": "npm run nest:build",
"nest:start": "nest start server",
"nest:start:dev": "nest start server --watch",
"nest:start:debug": "nest start server --debug --watch",
"nest:start:prod": "node dist/apps/server/apps/server.app",
"nest:start:management": "nest start management",
"nest:start:admin-api-server": "nest start admin-api-server",
"nest:start:admin-api-server:debug": "nest start admin-api-server --debug --watch",
"nest:start:admin-api-server:prod": "node dist/apps/server/apps/admin-api-server.app",
"nest:start:board-collaboration": "nest start board-collaboration",
"nest:start:board-collaboration:dev": "nest start board-collaboration --watch --",
"nest:start:board-collaboration:debug": "nest start board-collaboration --debug --watch",
"nest:start:board-collaboration:prod": "node dist/apps/server/apps/board-collaboration.app",
"nest:start:management:dev": "nest start management --watch",
"nest:start:management:debug": "nest start management --debug --watch",
"nest:start:management:prod": "node dist/apps/server/apps/management.app",
"nest:start:files-storage": "nest start files-storage & nest start files-storage-amqp & nest start preview-generator-amqp",
"nest:start:files-storage:dev": "nest start files-storage --watch & nest start files-storage-amqp --watch & nest start preview-generator-amqp --watch",
"nest:start:files-storage:debug": "nest start files-storage --debug --watch & nest start files-storage-amqp --debug --watch & nest start preview-generator-amqp --debug --watch",
"nest:start:files-storage:prod": "node dist/apps/server/apps/files-storage.app",
"nest:start:files-storage-amqp:prod": "node dist/apps/server/apps/files-storage-consumer.app",
"nest:start:preview-generator-amqp:prod": "node dist/apps/server/apps/preview-generator-consumer.app",
"nest:start:fwu-learning-contents": "nest start fwu-learning-contents",
"nest:start:fwu-learning-contents:debug": "nest start fwu-learning-contents --debug --watch",
"nest:start:fwu-learning-contents:prod": "node dist/apps/server/apps/fwu-learning-contents.app",
"nest:start:h5p": "nest start h5p-editor",
"nest:start:h5p:dev": "nest start h5p-editor --debug --watch",
"nest:start:h5p:prod": "node dist/apps/server/apps/h5p-editor.app",
"nest:start:h5p:library-management": "nest start h5p-library-management",
"nest:start:h5p:library-management:dev": "nest start h5p-library-management --debug --watch",
"nest:start:h5p:library-management:prod": "node dist/apps/server/apps/h5p-library-management.app",
"nest:start:console": "nest start console --",
"nest:start:console:dev": "nest start console --watch --",
"nest:start:console:debug": "nest start console --debug --watch --",
"nest:start:deletion-console": "nest start deletion-console --",
"nest:start:deletion-console:dev": "nest start deletion-console --watch --",
"nest:start:deletion-console:debug": "nest start deletion-console --debug --watch --",
"nest:start:idp-console": "nest start idp-console --",
"nest:start:idp-console:dev": "nest start idp-console --watch --",
"nest:start:idp-console:debug": "nest start idp-console --debug --watch --",
"nest:start:common-cartridge": "node dist/apps/server/apps/common-cartridge.app",
"nest:start:common-cartridge:dev": "nest start common-cartridge --watch --",
"nest:start:common-cartridge:debug": "nest start common-cartridge --debug --watch --",
"nest:start:sync": "npm run nest:start:console -- sync run",
"nest:test": "npm run nest:test:cov && npm run nest:lint",
"nest:test:all": "jest \"^((?!(\\.load)\\.spec\\.ts).)*\"",
"nest:test:unit": "jest \"^((?!(\\.api|\\.load)\\.spec\\.ts).)*\\.spec\\.ts$\"",
"nest:test:api": "jest \"\\.api\\.spec\\.ts$\"",
"nest:test:load": "jest \"\\.load\\.spec\\.ts$\"",
"nest:test:watch": "jest --watch",
"nest:test:cov": "jest \"^((?!\\.load\\.spec\\.ts).)*\\.spec\\.ts$\" --coverage --force-exit --maxWorkers='50%'",
"nest:test:debug": "jest --runInBand",
"nest:lint": "eslint apps --ignore-path .gitignore",
"syncIndexes": "node ./scripts/syncIndexes.js",
"ensureIndexes": "npm run nest:start:console -- database sync-indexes",
"schoolExport": "node ./scripts/schoolExport.js",
"schoolImport": "node ./scripts/schoolImport.js",
"generate-client:authorization": "node ./scripts/generate-client.js -u 'http://localhost:3030/api/v3/docs-json/' -p 'apps/server/src/infra/authorization-client/authorization-api-client' -c 'openapitools-config.json' -f 'operationId:AuthorizationReferenceController_authorizeByReference'",
"generate-client:etherpad": "node ./scripts/generate-client.js -u 'http://localhost:9001/api/openapi.json' -p 'apps/server/src/infra/etherpad-client/etherpad-api-client' -c 'openapitools-config.json'",
"pregenerate-client:tsp-api": "rimraf ./apps/server/src/infra/tsp-client/generated",
"generate-client:tsp-api": "openapi-generator-cli generate -c ./openapitools.json --generator-key tsp-api",
"generate-client:lessons-api":"openapi-generator-cli generate -c ./openapitools.json --generator-key svs-lesson-api",
"pregenerate-client:tldraw-api": "rimraf ./apps/server/src/infra/tldraw-client/generated",
"generate-client:tldraw-api": "openapi-generator-cli generate -c ./openapitools.json --generator-key tldraw-api"
},
"dependencies": {
"@aws-sdk/lib-storage": "^3.617.0",
"@feathersjs/adapter-commons": "^5.0.29",
"@feathersjs/authentication": "^5.0.29",
"@feathersjs/authentication-local": "^5.0.29",
"@feathersjs/commons": "^5.0.29",
"@feathersjs/configuration": "^5.0.29",
"@feathersjs/errors": "^5.0.29",
"@feathersjs/express": "^5.0.29",
"@feathersjs/feathers": "^5.0.29",
"@golevelup/nestjs-rabbitmq": "^4.0.0",
"@hendt/xml2json": "^1.0.3",
"@hpi-schul-cloud/commons": "^1.3.4",
"@keycloak/keycloak-admin-client": "^25.0.1",
"@lumieducation/h5p-server": "^9.3.2",
"@mikro-orm/cli": "^5.6.16",
"@mikro-orm/core": "^5.6.16",
"@mikro-orm/migrations-mongodb": "^5.6.16",
"@mikro-orm/mongodb": "^5.6.16",
"@mikro-orm/nestjs": "^5.2.1",
"@nestjs/axios": "^3.0.3",
"@nestjs/cache-manager": "^2.1.0",
"@nestjs/common": "^10.2.4",
"@nestjs/config": "^3.0.1",
"@nestjs/core": "^10.2.4",
"@nestjs/cqrs": "^10.2.7",
"@nestjs/jwt": "^10.1.1",
"@nestjs/microservices": "^10.2.4",
"@nestjs/passport": "^10.0.1",
"@nestjs/platform-express": "^10.2.4",
"@nestjs/platform-socket.io": "^10.3.7",
"@nestjs/platform-ws": "^10.3.0",
"@nestjs/swagger": "^7.1.10",
"@nestjs/websockets": "^10.3.7",
"@socket.io/mongo-adapter": "^0.3.2",
"@socket.io/redis-adapter": "^8.3.0",
"@types/gm": "^1.25.1",
"@types/ldapjs": "^2.2.5",
"@types/pdfmake": "^0.2.8",
"@types/xml2js": "^0.4.11",
"adm-zip": "^0.5.9",
"ajv": "^8.8.2",
"amqp-connection-manager": "^3.2.2",
"amqplib": "^0.8.0",
"arg": "^5.0.0",
"args": "^5.0.1",
"async": "^3.2.2",
"async-mutex": "^0.4.0",
"aws-sdk": "^2.1659.0",
"axios": "^1.7.4",
"axios-mock-adapter": "^1.21.2",
"bcryptjs": "*",
"body-parser": "^1.15.2",
"bson": "^4.6.0",
"busboy": "^1.6.0",
"cache-manager": "^5.4.0",
"cache-manager-redis-yet": "^4.1.2",
"chalk": "^5.0.0",
"clamscan": "^2.1.2",
"class-transformer": "^0.4.0",
"class-validator": "^0.14.0",
"client-oauth2": "^4.2.5",
"commander": "^8.1.0",
"compression": "^1.6.2",
"concurrently": "^6.0.0",
"cors": "^2.8.1",
"cross-env": "^7.0.0",
"crypto-js": "^4.2.0",
"disposable-email-domains": "^1.0.56",
"es6-promisify": "^7.0.0",
"express": "^4.18.2",
"express-openapi-validator": "^4.13.2",
"express-session": "^1.17.3",
"feathers-hooks-common": "^8.1.1",
"feathers-swagger": "^3.0.0",
"file-type": "^18.5.0",
"freeport": "^1.0.5",
"gm": "^1.25.0",
"html-entities": "^2.3.2",
"i18next": "^23.3.0",
"i18next-fs-backend": "^2.1.5",
"ioredis": "^5.3.2",
"jose": "^1.28.1",
"jsdom": "^23.2.0",
"jsonwebtoken": "^9.0.2",
"jwks-rsa": "^2.0.5",
"ldapjs": "git://github.com/hpi-schul-cloud/node-ldapjs.git",
"lodash": "^4.17.19",
"mixwith": "^0.1.1",
"moment": "^2.19.2",
"mongodb-memory-server-global": "^9.1.8",
"mongodb-uri": "^0.9.7",
"mongoose": "^6.12.3",
"mongoose-delete": "^0.5.4",
"mongoose-id-validator": "^0.6.0",
"mongoose-lean-virtuals": "^0.8.1",
"mongoose-shortid-nodeps": "git://github.com/leeroybrun/mongoose-shortid-nodeps.git",
"moodle-client": "^0.5.2",
"nanoid": "^3.3.4",
"nest-winston": "^1.9.4",
"nestjs-console": "^9.0.0",
"oauth-1.0a": "^2.2.6",
"open-graph-scraper": "^6.2.2",
"p-limit": "^3.1.0",
"papaparse": "^5.1.1",
"passport": "^0.6.0",
"passport-custom": "^1.1.1",
"passport-headerapikey": "^1.2.2",
"passport-jwt": "^4.0.1",
"passport-local": "^1.0.0",
"pdfmake": "^0.2.9",
"prom-client": "^15.1.3",
"qs": "^6.9.7",
"read-chunk": "^3.0.0",
"reflect-metadata": "^0.1.13",
"request-promise-core": "^1.1.4",
"request-promise-native": "^1.0.3",
"response-time": "^2.3.2",
"rimraf": "^3.0.2",
"rss-parser": "^3.13.0",
"rxjs": "^7.3.1",
"sanitize-html": "^2.13.0",
"serve-favicon": "^2.3.2",
"service": "^0.1.4",
"socket.io": "^4.7.5",
"socketio-file-upload": "^0.7.0",
"source-map-support": "^0.5.19",
"strip-bom": "^4.0.0",
"swagger-ui-dist": "^4.18.2",
"swagger-ui-express": "^4.1.6",
"tiny-async-pool": "^1.2.0",
"universal-analytics": "^0.5.1",
"urlsafe-base64": "^1.0.0",
"uuid": "^8.3.0",
"winston": "^3.8.2",
"ws": "^8.17.1",
"xml2js": "^0.6.2",
"yaml": "^2.5.0"
},
"devDependencies": {
"@aws-sdk/client-s3": "^3.617.0",
"@faker-js/faker": "^8.0.2",
"@feathersjs/adapter-tests": "^5.0.29",
"@golevelup/ts-jest": "^0.5.0",
"@jest-mock/express": "^1.4.5",
"@nestjs/cli": "^10.4.2",
"@nestjs/schematics": "^10.0.2",
"@nestjs/testing": "^10.2.4",
"@openapitools/openapi-generator-cli": "^2.13.5",
"@types/adm-zip": "^0.5.0",
"@types/amqplib": "^0.8.2",
"@types/bcryptjs": "^2.4.2",
"@types/busboy": "^1.5.0",
"@types/clamscan": "^2.0.5",
"@types/cookie": "^0.4.1",
"@types/crypto-js": "^4.0.2",
"@types/express": "^4.17.11",
"@types/express-session": "^1.17.5",
"@types/jest": "^29.2.1",
"@types/lodash": "^4.14.196",
"@types/node": "^18.19.41",
"@types/passport-jwt": "^3.0.5",
"@types/passport-local": "^1.0.33",
"@types/response-time": "^2.3.5",
"@types/rimraf": "^3.0.2",
"@types/sanitize-html": "^2.11.0",
"@types/source-map-support": "^0.5.3",
"@types/supertest": "^2.0.12",
"@types/uuid": "^8.3.4",
"@types/ws": "^8.5.10",
"@typescript-eslint/eslint-plugin": "^5.47.1",
"@typescript-eslint/parser": "^5.47.1",
"@typescript-eslint/typescript-estree": "^5.47.1",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"chai-http": "^4.2.0",
"copyfiles": "^2.4.0",
"esbuild": "^0.17.10",
"esbuild-plugin-d.ts": "^1.3.0",
"eslint": "^8.57.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-prettier": "^8.10.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-filename-rules": "^1.3.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^27.9.0",
"eslint-plugin-jsx-a11y": "^6.9.0",
"eslint-plugin-no-only-tests": "^3.3.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-promise": "^7.1.0",
"fishery": "^2.2.2",
"jest": "^29.2.2",
"jwt-decode": "^3.1.2",
"mocha": "^9.1.3",
"mockery": "^2.0.0",
"nock": "^13.0.0",
"nyc": "^15.0.1",
"prettier": "^2.8.1",
"prettier-eslint": "^12.0.0",
"proxyquire": "^2.1.3",
"rewire": "^5.0.0",
"shx": "^0.3.2",
"simple-oauth2": "^4.2.0",
"sinon": "^11.1.1",
"sinon-chai": "^3.5.0",
"socket.io-client": "^4.7.5",
"supertest": "^7.0.0",
"ts-jest": "^29.2.3",
"ts-loader": "^9.4.2",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.1.1",
"typescript": "^5.5.4"
}
}