-
Notifications
You must be signed in to change notification settings - Fork 18
/
package.json
281 lines (281 loc) · 13.7 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
{
"name": "ticketing",
"author": "getlarge",
"version": "0.2.0",
"license": "MIT",
"packageManager": "yarn@3.6.3",
"engines": {
"node": ">=18.19.0"
},
"scripts": {
"start": "nx serve",
"start:frontend": "nx run ng-client:serve",
"start:frontend:local": "nx run ng-client:serve:local",
"start:backend": "nx run-many --target=serve --projects=auth,expiration,orders,payments,tickets --parallel --maxParallel=5",
"build": "nx build",
"build:docker:base": "docker build . -t getlarge/ticketing:nx-base",
"build:docker": "nx run-many --target=docker-build",
"report": "nx report",
"get:apps": "ts-node --project tools/tsconfig.json tools/nx/get-projects-cli.ts -t app -p",
"get:libs": "ts-node --project tools/tsconfig.json tools/nx/get-projects-cli.ts -t lib -p",
"refresh-pkg-json": "npx nx run-many --target=refresh-pkg-json --projects=auth,expiration,orders,payments,tickets",
"affected": "nx affected",
"affected:apps": "ts-node --project tools/tsconfig.json tools/nx/get-projects-cli.ts -t app -p",
"affected:libs": "ts-node --project tools/tsconfig.json tools/nx/get-projects-cli.ts -t lib -p",
"affected:test": "nx affected:test",
"affected:lint": "nx affected:lint",
"affected:lint:fast": "ts-node --project tools/tsconfig.json tools/nx/fast-lint.js -v",
"affected:dep-graph": "nx affected:dep-graph",
"affected:build:docker": "nx affected --target=docker-build",
"affected:e2e": "nx affected:e2e",
"affected:e2e:frontend": "nx affected:e2e --headless --exclude=auth,expiration,orders,payments,tickets,workspace",
"affected:e2e:backend": "nx affected:e2e --exclude=client-e2e,ng-client-e2e,workspace",
"format": "nx format:write",
"format:write": "nx format:write",
"format:check": "nx format:check",
"keygen:privkey": "openssl ecparam -name prime256v1 -genkey -noout -out keys/ec-prime256v1-priv-key.pem",
"keygen:privkey-b64": "cat keys/ec-prime256v1-priv-key.pem | base64",
"keygen:pubkey": "openssl ec -in keys/ec-prime256v1-priv-key.pem -pubout > keys/ec-prime256v1-pub-key.pem",
"keygen:pubkey-b64": "cat keys/ec-prime256v1-pub-key.pem | base64",
"keygen:session": "npx fastify-secure-session > keys/secret-key",
"keygen:session-b64": "cat keys/secret-key | base64 ",
"dotenv-pull": "node tools/utils/dotenv-pull.js",
"dotenv-pull:all": "npx nx run-many --target=dotenv-pull --projects=auth,expiration,orders,tickets,payments",
"dotenv-push": "node tools/utils/dotenv-push.js",
"dotenv-push:all": "npx nx run-many --target=dotenv-push --projects=auth,expiration,orders,tickets,payments",
"docker:rmq:build": "docker buildx build infra/rabbitmq -f infra/rabbitmq/Dockerfile -t ghcr.io/getlarge/ticketing/rabbitmq --load",
"docker:rmq:push": "docker buildx build infra/rabbitmq -f infra/rabbitmq/Dockerfile --platform linux/amd64,linux/arm64 -t ghcr.io/getlarge/ticketing/rabbitmq --push",
"docker:proxy:build": "docker buildx build infra/nginx --no-cache -f infra/nginx/Dockerfile -t ghcr.io/getlarge/ticketing/nginx-proxy --build-arg TEMPLATE=nginx.template --load",
"docker:proxy:push": "docker buildx build infra/nginx --no-cache -f infra/nginx/Dockerfile --platform linux/amd64,linux/arm64 -t ghcr.io/getlarge/ticketing/nginx-proxy --build-arg TEMPLATE=nginx.template --push",
"docker:proxy:up": "docker run -d --rm --name nginx-proxy --env-file .env -p 0.0.0.0:8080:8080/tcp ghcr.io/getlarge/ticketing/nginx-proxy",
"docker:proxy-linux:up": "docker run -d --rm --name nginx-proxy --env-file .env -p 0.0.0.0:8080:8080/tcp --add-host=host.docker.internal:host-gateway ghcr.io/getlarge/ticketing/nginx-proxy",
"docker:proxy:down": "docker kill nginx-proxy",
"docker:proxy:log": "docker logs -f --tail=100 nginx-proxy",
"docker:dev:up": "docker compose -f docker-compose.yaml -p ticketing --env-file .env --profile dev up -d",
"docker:dev:down": "docker compose -f docker-compose.yaml -p ticketing --env-file .env --profile dev down",
"docker:dev:log": "docker compose -f docker-compose.yaml -p ticketing logs -f --tail=100",
"docker:deps:up": "docker compose -f docker-compose.yaml -p ticketing --env-file .env --profile deps-only up -d",
"docker:deps:down": "docker compose -f docker-compose.yaml -p ticketing --env-file .env --profile deps-only down",
"docker:deps:clean": "docker volume rm ticketing_mongo_volume ; docker volume rm ticketing_redis_volume ; docker volume rm ticketing_rabbitmq_volume",
"docker:deps:log": "docker compose -p ticketing logs -f --tail=100",
"docker:ory:up": "yarn ory:generate ; docker compose -f docker-compose.yaml -p ticketing --env-file .env --profile ory-only up -d",
"docker:ory:down": "docker compose -f docker-compose.yaml -p ticketing --env-file .env --profile ory-only down",
"docker:ory:clean": "docker volume rm ticketing_keto_postgres_volume ; docker volume rm ticketing_kratos_postgres_volume ; docker volume rm ticketing_hydra_postgres_volume",
"k8s:jwt-secret": "kubectl create secret generic jwt-secret --from-env-file ./keys/.env",
"k8s:stripe-secret": "kubectl create secret generic stripe-secret --from-env-file ./infra/k8s/apps/.env.stripe",
"k8s:dev:deps": "skaffold dev --module deps --port-forward",
"k8s:dev:apps": "skaffold dev --module apps",
"k8s:dev": "skaffold dev --port-forward",
"k8s:start": "skaffold run",
"k8s:start:apps": "skaffold run --module apps",
"k8s:start:deps": "skaffold run --module deps",
"k8s:stop": "skaffold delete",
"k8s:stop:apps": "skaffold delete --module apps",
"k8s:stop:deps": "skaffold delete --module deps",
"k8s:log": "skaffold run --tail",
"docs:architecture": "mmdc -i docs/architecture.mmd -o docs/architecture.svg -t neutral -b white",
"docs:events": "mmdc -i docs/events.mmd -o docs/events.svg -t neutral -b white",
"docs:journey": "mmdc -i docs/journey.mmd -o docs/journey.svg -t neutral -b white",
"docs:models": "mmdc -i docs/models.mmd -o docs/models.svg -t neutral -b white",
"docs:export-mmd": "yarn docs:architecture && yarn docs:events && yarn docs:journey && yarn docs:models",
"docs:openapi:generate": "ts-node --project tools/tsconfig.json tools/open-api/build-openapi-specs.ts",
"docs:openapi:lint": "redoc-cli lint docs/openapi.json",
"docs:openapi:serve": "redoc-cli serve docs/openapi.json",
"docs:openapi:build": "redoc-cli build docs/openapi.json",
"docs:postman": "ts-node --project tools/tsconfig.json tools/open-api/build-postman-collection.ts",
"ng:openapi": "ts-node --project tools/tsconfig.json tools/open-api/generate-ng-openapi.ts",
"update": "YARN_NODE_LINKER='node-modules' yarn nx migrate latest",
"dep-graph": "nx dep-graph",
"version": "node tools/utils/sync-versions",
"bump:dry-run": "nx run workspace:version --dryRun",
"bump": "nx run workspace:version",
"bump:patch": "npm version patch && nx run workspace:version --releaseAs=patch",
"bump:minor": "npm version minor && nx run workspace:version --releaseAs=minor",
"git:check-diff": "node tools/git/check-diff-cli.js",
"git:workflow-runs": "node tools/git/get-workflows-cli.js",
"git:dispatch-workflow": "node tools/git/dispatch-workflow-cli.js",
"ory:get:identities": "ts-node --project tools/tsconfig.json tools/ory/get-config.ts identity",
"ory:get:permissions": "ts-node --project tools/tsconfig.json tools/ory/get-config.ts permission",
"ory:generate": "yarn ory:generate:kratos && yarn ory:generate:hydra && yarn ory:generate:keto",
"ory:generate:kratos": "ts-node --project tools/tsconfig.json tools/ory/generate-config.ts kratos -e .env",
"ory:generate:hydra": "ts-node --project tools/tsconfig.json tools/ory/generate-config.ts hydra -e .env",
"ory:generate:keto": "ts-node --project tools/tsconfig.json tools/ory/generate-config.ts keto -e .env",
"ory:generate:oathkeeper": "ts-node --project tools/tsconfig.json tools/ory/generate-config.ts oathkeeper -e .env",
"tunnel": "node tools/utils/local-tunnel",
"cz": "cz",
"code-pushup:collect": "npx code-pushup collect --config code-pushup.config.ts",
"code-pushup:upload": "npx code-pushup upload --config code-pushup.config.ts",
"code-pushup": "npx code-pushup autorun --config code-pushup.config.ts",
"prepare": "husky install",
"postinstall": "husky install"
},
"dependencies": {
"@angular/animations": "18.0.3",
"@angular/common": "18.0.3",
"@angular/compiler": "18.0.3",
"@angular/core": "18.0.3",
"@angular/forms": "18.0.3",
"@angular/platform-browser": "18.0.3",
"@angular/platform-browser-dynamic": "18.0.3",
"@angular/router": "18.0.3",
"@fastify/cookie": "9.3.1",
"@fastify/cors": "9.0.1",
"@fastify/helmet": "11.1.1",
"@fastify/multipart": "8.2.0",
"@fastify/passport": "2.4.0",
"@fastify/secure-session": "7.5.0",
"@fastify/static": "7.0.3",
"@fastify/swagger": "8.14.0",
"@getlarge/hydra-client-wrapper": "0.3.0",
"@getlarge/keto-cli": "0.2.3",
"@getlarge/keto-client-wrapper": "0.3.0",
"@getlarge/keto-relations-parser": "0.0.9",
"@getlarge/kratos-cli": "0.3.0",
"@getlarge/kratos-client-wrapper": "0.2.0",
"@getlarge/nestjs-tools-amqp-transport": "0.6.0",
"@getlarge/nestjs-tools-fastify-upload": "0.1.1",
"@nest-lab/or-guard": "2.4.1",
"@nestjs/axios": "3.0.2",
"@nestjs/bull": "10.1.1",
"@nestjs/common": "10.3.7",
"@nestjs/config": "3.2.2",
"@nestjs/core": "10.3.7",
"@nestjs/jwt": "10.2.0",
"@nestjs/microservices": "10.3.7",
"@nestjs/mongoose": "10.0.6",
"@nestjs/platform-fastify": "10.3.7",
"@nestjs/swagger": "7.3.1",
"@nestjs/terminus": "10.2.3",
"@ng-bootstrap/ng-bootstrap": "13.0.0-beta.1",
"@ngrx/effects": "17.0.1",
"@ngrx/entity": "17.0.1",
"@ngrx/store": "17.0.1",
"@ngrx/store-devtools": "17.0.1",
"@ory/client": "^1.4.3",
"@popperjs/core": "^2.11.5",
"@stripe/stripe-js": "1.34.0",
"amqp-connection-manager": "4.1.14",
"amqplib": "0.10.3",
"axios": "1.7.2",
"bootstrap": "^5.1.3",
"bull": "4.8.2",
"class-transformer": "0.5.1",
"class-validator": "0.13.2",
"core-js": "^3.6.5",
"defekt": "^9.3.1",
"dotenv": "16.3.1",
"dotenv-expand": "10.0.0",
"fastify": "4.26.2",
"ioredis": "5.3.2",
"mongoose": "^6.1.0",
"mongoose-update-if-current": "^1.4.0",
"nestjs-keyset-paginator": "3.0.4",
"nestjs-pino": "3.4.0",
"ngx-stripe": "14.1.0",
"passport-jwt": "4.0.0",
"passport-local": "1.0.0",
"pino-http": "8.5.0",
"pino-pretty": "10.2.3",
"reflect-metadata": "^0.2.2",
"regenerator-runtime": "0.13.7",
"rxjs": "7.8.1",
"stripe": "8.222.0",
"swr": "^1.0.1",
"ts-mixer": "6.0.1",
"tslib": "2.6.2",
"zone.js": "0.14.7"
},
"devDependencies": {
"@angular-devkit/build-angular": "18.0.3",
"@angular-eslint/eslint-plugin": "18.0.1",
"@angular-eslint/eslint-plugin-template": "18.0.1",
"@angular-eslint/template-parser": "18.0.1",
"@angular/cli": "~18.0.0",
"@angular/compiler-cli": "18.0.3",
"@angular/language-service": "18.0.3",
"@apidevtools/swagger-parser": "^10.0.3",
"@code-pushup/cli": "^0.35.0",
"@code-pushup/coverage-plugin": "^0.35.0",
"@code-pushup/eslint-plugin": "^0.35.0",
"@commitlint/cli": "^15.0.0",
"@commitlint/config-angular": "^15.0.0",
"@commitlint/config-conventional": "^15.0.0",
"@golevelup/ts-jest": "^0.4.0",
"@jscutlery/semver": "^3.1.0",
"@mermaid-js/mermaid-cli": "^8.13.4",
"@nestjs/schematics": "10.1.1",
"@nestjs/testing": "10.3.7",
"@nx/angular": "19.2.3",
"@nx/cypress": "19.2.3",
"@nx/eslint": "19.2.3",
"@nx/eslint-plugin": "19.2.3",
"@nx/jest": "19.2.3",
"@nx/js": "19.2.3",
"@nx/nest": "19.2.3",
"@nx/node": "19.2.3",
"@nx/web": "19.2.3",
"@nx/webpack": "19.2.3",
"@nx/workspace": "19.2.3",
"@swc-node/register": "1.9.2",
"@swc/core": "1.5.7",
"@swc/helpers": "~0.5.11",
"@types/amqplib": "^0.10.4",
"@types/bull": "^3.15.8",
"@types/glob": "^8.1.0",
"@types/jest": "29.4.4",
"@types/js-yaml": "^4.0.9",
"@types/node": "18.16.9",
"@types/passport-jwt": "^3.0.6",
"@types/passport-local": "^1.0.34",
"@types/pino-http": "^5.8.1",
"@types/shortid": "^0.0.29",
"@typescript-eslint/eslint-plugin": "7.9.0",
"@typescript-eslint/parser": "7.9.0",
"@typescript-eslint/utils": "^8.0.0-alpha.28",
"commitizen": "^4.2.4",
"cypress": "^8.3.0",
"cz-conventional-changelog": "^3.3.0",
"dotenv-vault": "^1.25.0",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-cypress": "2.14.0",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-jsx-a11y": "6.7.1",
"eslint-plugin-max-params-no-constructor": "^0.0.4",
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-security": "^1.4.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"eslint-plugin-sonarjs": "0.11.0",
"eslint-plugin-unused-imports": "2.0.0",
"eslint-plugin-you-dont-need-lodash-underscore": "^6.13.0",
"glob": "^10.3.10",
"husky": "^7.0.4",
"jest": "29.4.3",
"jest-environment-jsdom": "28.1.3",
"jest-environment-node": "^29.4.1",
"jest-preset-angular": "14.1.0",
"js-yaml": "^4.1.0",
"localtunnel": "^2.0.2",
"ng-openapi-gen": "^0.21.0",
"nx": "19.2.3",
"openapi-merge": "^1.3.1",
"openapi-to-postmanv2": "^2.13.0",
"prettier": "3.1.1",
"redoc-cli": "^0.13.0",
"ts-jest": "29.1.1",
"ts-node": "^10.9.1",
"ts-node-dev": "^2.0.0",
"typescript": "5.4.5",
"vscode-material-icons": "^0.1.0",
"webpack-cli": "^5.1.4",
"yargs": "^17.2.1"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"nx": {
"targets": {}
}
}