-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.json
More file actions
67 lines (67 loc) · 3.8 KB
/
package.json
File metadata and controls
67 lines (67 loc) · 3.8 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
{
"private": true,
"scripts": {
"build:app-shared": "yarn workspaces foreach -Rt --from '@openvaa/app-shared' run build && true",
"build:shared": "yarn workspaces foreach -At --include 'packages/*' run build && true",
"watch:shared": "echo 'Watching packages for changes...' && onchange 'packages/*/src/**/*' -- sh -c 'echo \"Rebuilding @openvaa/$(echo {{changed}} | cut -d/ -f2)...\" && yarn workspace @openvaa/$(echo {{changed}} | cut -d/ -f2) build && echo \"Restarting frontend container\" && yarn dev:restart-frontend'",
"dev": "yarn dev:start && yarn watch:shared",
"dev:start": "yarn build:shared && docker compose -f docker-compose.dev.yml up -d --force-recreate --build --wait",
"dev:attach": "docker compose -f docker-compose.dev.yml up --force-recreate --build",
"dev:down": "docker compose -f docker-compose.dev.yml down -v --rmi all --remove-orphans",
"dev:stop": "docker compose -f docker-compose.dev.yml stop",
"dev:restart-frontend": "docker restart voting-advice-application-frontend-1",
"docker:delete-all": "docker rm --force --volumes $(docker ps -q); docker volume rm --force $(docker volume ls -q); docker image rm --force $(docker images -q); docker builder prune -f; rm ~/Library/Containers/com.docker.docker/Data/vms/0/data/Docker.raw; docker system df",
"prepare": "husky",
"sync:translations": "rsync -av --include='*/' --include='dynamic.json' --exclude='*' frontend/src/lib/i18n/translations/ backend/vaa-strapi/src/util/translations/",
"prod": "docker compose -f docker-compose.yml -p vaa-prod up -d --build",
"test:e2e": "playwright test -c ./tests/playwright.config.ts ./tests",
"test:unit": "vitest run && yarn workspace @openvaa/frontend test:unit && yarn workspace @openvaa/strapi test:unit",
"test:unit:watch": "echo '###################################\nNB! Running only tests in /packages\n###################################\n' && vitest",
"format": "yarn build:app-shared && prettier --write . && yarn workspace @openvaa/docs format",
"format:check": "yarn build:app-shared && prettier --check . && yarn workspace @openvaa/docs format:check",
"lint:fix": "yarn build:app-shared && prettier --write . && eslint --flag v10_config_lookup_from_file --fix backend/vaa-strapi/src backend/vaa-strapi/tests frontend packages tests",
"lint:check": "yarn build:app-shared && eslint --flag v10_config_lookup_from_file backend/vaa-strapi/src backend/vaa-strapi/tests frontend packages tests",
"docs:prepare": "yarn build:shared && yarn workspace @openvaa/frontend prepare",
"docs:generate": "yarn workspace @openvaa/docs generate",
"docs:typedoc": "yarn workspace @openvaa/docs generate:typedoc",
"docs:typedoc-frontend": "yarn workspace @openvaa/docs generate:typedoc-frontend",
"docs:components": "yarn workspace @openvaa/docs generate:components",
"docs:routes": "yarn workspace @openvaa/docs generate:routes",
"docs:dev": "yarn workspace @openvaa/docs dev"
},
"devDependencies": {
"@faker-js/faker": "^8.4.1",
"@openvaa/shared-config": "workspace:^",
"@playwright/test": "^1.49.1",
"@types/cheerio": "^0.22.35",
"@types/mailparser": "^3.4.5",
"@types/node": "^20.17.12",
"cheerio": "^1.0.0",
"dotenv": "^16.4.7",
"eslint": "^9.39.2",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"glob": "^11.0.0",
"husky": "^9.1.7",
"lint-staged": "^16.2.7",
"mailparser": "^3.7.2",
"onchange": "^7.1.0",
"prettier": "^3.4.2",
"tsx": "^4.19.2",
"vitest": "^2.1.8"
},
"engine": {
"node": "20.18.1",
"yarn": "4.6",
"npm": "please-use-yarn"
},
"type": "module",
"workspaces": [
"packages/*",
"backend/vaa-strapi",
"backend/vaa-strapi/src/plugins/*",
"frontend",
"docs"
],
"packageManager": "yarn@4.6.0"
}