-
Notifications
You must be signed in to change notification settings - Fork 10
/
package.json
51 lines (51 loc) · 3.55 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
{
"devDependencies": {
"@commitlint/cli": "^17.7.1",
"@commitlint/config-conventional": "^17.7.0",
"cross-env": "^7.0.3",
"husky": "^8.0.3"
},
"engines": {
"node": ">=18.16.0 <19.0.0"
},
"scripts": {
"prepare": "husky install",
"// clean: stop and remove docker containers and database volume": "",
"clean": "docker compose -f compose.handler.yml down --remove-orphans; docker compose -f compose.employer.yml down --remove-orphans; docker compose -f compose.benefit.yml down --remove-orphans; docker rm -f $(docker ps -a -q); docker volume rm $(docker volume ls -q);",
"// partial docker compose commands per service, dont use these straight. Use <service>:up, <service>:build or <service>:rebuild instead ": "",
"benefit": "cross-env COMPOSE_HTTP_TIMEOUT=200 docker compose -f compose.benefit.yml",
"employer": "cross-env COMPOSE_HTTP_TIMEOUT=200 docker compose -f compose.employer.yml",
"handler": "cross-env COMPOSE_HTTP_TIMEOUT=200 docker compose -f compose.handler.yml",
"youth": "cross-env COMPOSE_HTTP_TIMEOUT=200 docker compose -f compose.handler.yml",
"tet": "cross-env COMPOSE_HTTP_TIMEOUT=200 docker compose -f compose.tet.yml",
"tet-admin": "cross-env COMPOSE_HTTP_TIMEOUT=200 docker compose -f compose.tet-admin.yml",
"tet-youth": "cross-env COMPOSE_HTTP_TIMEOUT=200 docker compose -f compose.tet-youth.yml",
"// Starts server and watch for file changes. Re-run this when you change env settings or add new files": "",
"benefit:up": "yarn benefit up",
"employer:up": "yarn employer up",
"handler:up": "yarn handler up",
"youth:up": "yarn youth up",
"tet:up": "yarn tet up",
"tet-admin:up": "yarn tet-admin up",
"tet-youth:up": "yarn tet-youth up",
"// builds images and starts server. Use these when you change dockerimage": "",
"benefit:build": "yarn benefit:up --build --renew-anon-volumes",
"employer:build": "yarn employer:up --build --renew-anon-volumes",
"handler:build": "yarn handler:up --build --renew-anon-volumes",
"youth:build": "yarn youth:up --build --renew-anon-volumes",
"tet:build": "yarn tet:up --build --renew-anon-volumes",
"tet-admin:build": "yarn tet-admin:up --build --renew-anon-volumes",
"tet-youth:build": "yarn tet-youth:up --build --renew-anon-volumes",
"// Cleans build context and databases before building image again": "",
"// Use these when you switch between services (Ie. when you have previously ran kesäseteli and now you want to run benefit). Otherwise the other service's database might confict": "",
"// Use these also if nextjs complains about missing file": "",
"benefit:rebuild": "yarn clean; rm -rf frontend/benefit/applicant/.next; yarn benefit build --no-cache; yarn benefit:up",
"employer:rebuild": "yarn clean; rm -rf frontend/kesaseteli/employer/.next;yarn employer build --no-cache; yarn employer:up",
"handler:rebuild": "yarn clean; rm -rf frontend/kesaseteli/*/.next; yarn handler build --no-cache; yarn handler:up",
"youth:rebuild": "yarn clean; rm -rf frontend/kesaseteli/youth/.next; yarn youth build --no-cache; yarn youth:up",
"tet:rebuild": "yarn clean; rm -rf frontend/tet/admin/.next; rm -rf frontend/tet/youth/.next; yarn tet build --no-cache; yarn tet:up",
"tet-admin:rebuild": "yarn clean; rm -rf frontend/tet/admin/.next; yarn tet-admin build --no-cache; yarn tet-admin:up",
"tet-youth:rebuild": "yarn clean; rm -rf frontend/tet/youth/.next; yarn tet-youth build --no-cache; yarn tet-youth:up"
},
"packageManager": "yarn@1.22.22+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610"
}