-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
96 lines (96 loc) · 4.84 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
{
"name": "konsti-monorepo",
"private": true,
"workspaces": [
"client",
"server"
],
"type": "commonjs",
"scripts": {
"build-front:ci": "yarn workspace konsti-client build:ci && yarn copy-front",
"build-front:dev": "yarn workspace konsti-client build:dev && yarn copy-front",
"build-front:kube-dev": "yarn workspace konsti-client build:kube-dev && yarn copy-front",
"build-front:prod": "yarn workspace konsti-client build:prod && yarn copy-front",
"build-front:staging": "yarn workspace konsti-client build:staging && yarn copy-front",
"build-server": "yarn workspace konsti-server build",
"client": "yarn workspace konsti-client start",
"copy-front": "rimraf server/front && ncp client/build server/front",
"playwright": "yarn docker:db && npm-run-all --parallel server:test client playwright:install",
"playwright:install": "npx playwright install && npx playwright test --ui --config ./playwright/",
"playwright:trace": "npx playwright show-trace trace.zip",
"playwright:debug": "PWDEBUG=1 npx playwright test --config ./playwright/",
"docker-compose:start": "APP_SETTINGS=dev docker compose -f ./docker/docker-compose.yml up --detach --build --remove-orphans",
"docker-compose:stop": "APP_SETTINGS=dev docker compose -f ./docker/docker-compose.yml down --remove-orphans",
"docker-compose:test": "APP_SETTINGS=ci docker compose -f ./docker/docker-compose.yml -f ./playwright/docker-compose.yml up --attach playwright --build playwright --remove-orphans --exit-code-from playwright --abort-on-container-exit",
"docker:build-prod": "docker build --build-arg env=prod . -t konsti-prod",
"docker:build-staging": "docker build --build-arg env=staging . -t konsti-staging",
"docker:build-dev": "docker build --build-arg env=dev . -t konsti-dev",
"docker:start-dev-with-local-db": "yarn docker:build-dev && docker run -p 5000:5000 -d --env-file ./docker/docker-dev.env konsti-dev",
"docker:db": "yarn docker:db-run 2>/dev/null || yarn docker:db-start",
"docker:db-run": "docker run -p 27017:27017 -d --name konsti-mongodb mongo:7.0.15-jammy",
"docker:db-start": "docker start konsti-mongodb",
"eslint-inspect-config": "eslint --inspect-config",
"eslint-timings": "TIMING=1 yarn eslint",
"eslint:client": "yarn workspace konsti-client eslint",
"eslint:server": "yarn workspace konsti-server eslint",
"eslint": "eslint --report-unused-disable-directives-severity error .",
"lint": "yarn eslint && yarn stylelint && yarn prettier:check",
"populate-db:dummy": "yarn workspace konsti-server generate-data --clean --users --programItems --lotterySignups --eventLog",
"populate-db:kompassi": "yarn workspace konsti-server generate-data --clean && yarn workspace konsti-server load-kompassi-data && yarn workspace konsti-server generate-data --users --lotterySignups --eventLog",
"postinstall": "husky|| true",
"prettier:check": "prettier --check \"./**/*.{js,cjs,json,mdx,ts,mts,tsx,yml}\"",
"prettier:write": "prettier --write \"./**/*.{js,cjs,json,mdx,ts,mts,tsx,yml}\"",
"server": "yarn workspace konsti-server start:dev",
"server:test": "yarn workspace konsti-server start:test",
"start:dev": "yarn docker:db && npm-run-all --parallel server client",
"start:test": "yarn docker:db && npm-run-all --parallel server:test client",
"start": "yarn workspace konsti-server start",
"stylelint": "yarn workspace konsti-client stylelint",
"test-assign": "yarn workspace konsti-server test-assign",
"test:watch": "yarn vitest watch",
"test": "yarn vitest run",
"type-check": "tsc --noEmit",
"update-yarn": "yarn set version stable"
},
"dependencies": {
"@yarnpkg/types": "4.0.0",
"axios": "1.7.9",
"dayjs": "1.11.13",
"lodash-es": "4.17.21",
"ncp": "2.0.0",
"npm-run-all2": "7.0.1",
"rimraf": "6.0.1",
"typescript": "5.7.2",
"zod": "3.24.1"
},
"devDependencies": {
"@eslint-community/eslint-plugin-eslint-comments": "4.4.1",
"@eslint/js": "9.17.0",
"@playwright/test": "1.49.1",
"@types/eslint__js": "8.42.3",
"@types/lodash-es": "4.17.12",
"eslint": "9.17.0",
"eslint-config-prettier": "9.1.0",
"eslint-import-resolver-typescript": "3.7.0",
"eslint-plugin-compat": "6.0.2",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-jsx-a11y": "6.10.2",
"eslint-plugin-n": "17.15.0",
"eslint-plugin-only-error": "1.0.2",
"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-promise": "7.2.1",
"eslint-plugin-react": "7.37.2",
"eslint-plugin-react-hooks": "5.1.0",
"eslint-plugin-react-hooks-addons": "0.4.1",
"eslint-plugin-unicorn": "56.0.1",
"eslint-plugin-vitest": "0.5.4",
"globals": "15.13.0",
"prettier": "3.4.2",
"typescript-eslint": "8.18.0",
"vitest": "2.1.8"
},
"engines": {
"node": ">=22.11.0"
},
"packageManager": "[email protected]"
}