-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpackage.json
88 lines (88 loc) · 3.64 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
{
"name": "itcorpo-api",
"description": "Professional trainings on JavaScript, TypeScript and many more...",
"private": true,
"author": {
"name": "Tomasz Ducin",
"email": "[email protected]",
"url": "https://ducin.dev"
},
"scripts": {
"start": "concurrently \"ts-node scripts/run-server\" \"npm run open\"",
"dev": "concurrently \"npm run server:dev\" \"npm run dev:prism-proxy\" \"npm run dev:contract:generate-types\" \"npm run dev:contract:generate-schemas\" \"npm run open\"",
"open": "ts-node scripts/open-index",
"server:dev": "nodemon --ext ts,json --watch resources --watch middlewares --watch lib --watch server scripts/run-server",
"database:migrate": "ts-node migrate/migrate.ts",
"contract:validate": "redocly lint contract/openapi.yml --format stylish",
"contract:generate-docs": "redocly build-docs contract/openapi.yml && mkdir -p docs && mv redoc-static.html docs/index.html && touch docs/.nojekyll",
"contract:generate-types": "ts-node scripts/generate-api-types.ts",
"dev:contract:generate-types": "nodemon --watch contract/openapi.yml --ext yml,yaml -x 'npm run contract:generate-types'",
"contract:generate-schemas": "openapi-zod-client ./contract/openapi.yml --output contract-types/zod-schemas.ts --template scripts/custom-template.hbs --group-strategy tag --with-docs --strict-objects",
"contract:generate-schemas-XYZ": "openapi-zod-client ./contract/openapi.yml --output contract-types/zod-schemas.ts --template scripts/schemas-and-types-directly.hbs --group-strategy tag --with-docs --strict-objects",
"dev:contract:generate-schemas": "nodemon --watch contract/openapi.yml --watch scripts/schemas-and-types-directly.hbs --ext yml,yaml,hbs -x 'npm run contract:generate-schemas'",
"dev:prism-proxy": "prism proxy ./contract/openapi.yml http://localhost:3000 --errors -p 3001",
"test": "vitest",
"test:run": "vitest run",
"test:ui": "vitest --ui",
"test:coverage": "vitest run --coverage",
"generate:TEMP": "ts-node migrate/profile/run.ts"
},
"dependencies": {
"@redocly/cli": "^1.27.1",
"body-parser": "^1.20.3",
"chalk": "^4.1.2",
"compression": "^1.7.5",
"connect-pause": "^0.1.0",
"cookie-parser": "^1.4.7",
"cors": "^2.8.5",
"date-fns": "^4.1.0",
"express": "^4.21.2",
"express-jwt": "^8.5.1",
"express-openapi-validator": "^5.4.2",
"express-urlrewrite": "^2.0.3",
"http-server": "^14.1.0",
"json-schema-faker": "^0.4.7",
"json-schema-to-typescript": "^10.1.5",
"json-server": "^0.17.0",
"jsonwebtoken": "^8.5.1",
"morgan": "^1.10.0",
"open": "^8.4.2",
"openapi-zod-client": "^1.18.2",
"socket.io": "^4.4.1",
"swagger-typescript-api": "^13.0.23",
"swagger-ui-express": "^4.6.3",
"uuid": "^11.0.3",
"ws": "^8.18.0",
"yaml": "^2.7.0",
"yargs": "^17.7.2",
"zod": "^3.24.1"
},
"devDependencies": {
"@stoplight/prism-cli": "^5.12.0",
"@types/body-parser": "^1.19.2",
"@types/compression": "^1.7.5",
"@types/cookie-parser": "^1.4.8",
"@types/cors": "^2.8.17",
"@types/express": "^4.17.21",
"@types/json-server": "^0.14.4",
"@types/jsonwebtoken": "^9.0.7",
"@types/morgan": "^1.9.9",
"@types/node": "^18.16.19",
"@types/supertest": "^6.0.2",
"@types/swagger-ui-express": "^4.1.7",
"@types/uuid": "^10.0.0",
"@types/ws": "^8.5.13",
"@types/yargs": "^17.0.33",
"@vitest/coverage-v8": "^2.1.8",
"@vitest/ui": "^2.1.8",
"concurrently": "^9.1.2",
"nodemon": "^3.1.9",
"supertest": "^7.0.0",
"ts-node": "^10.9.1",
"typescript": "^5.7.2",
"vitest": "^2.1.8"
},
"engines": {
"node": ">=18.0.0"
}
}