-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
20 lines (20 loc) · 1.28 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
"name": "a-just",
"version": "1.9.1",
"engines": {
"node": "20.9.0"
},
"scripts": {
"db:build": "docker compose -f docker-compose.yml -f docker-compose.dev.yml build",
"db:start": "docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d",
"test": "npm run test:api && npm run test:e2e",
"test:api": "docker compose -p test-api -f docker-compose.test.yml build && docker compose -p test-api -f docker-compose.test.yml run --rm api; exitcode=$?; docker compose -p test-api -f docker-compose.test.yml down; exit ${exitcode}",
"test:e2e": "NODE_ENV=test && docker compose -p test-e2e -f docker-compose-e2e.test.yml build && docker compose -p test-e2e -f docker-compose-e2e.test.yml run --rm cypress; exitcode=$?",
"build": "npm run build:api && npm run build:front-admin && npm run build:front && npm run build:package",
"build:api": "cd api && npm i && npm run build && cd ..",
"build:front-admin": "cd front-admin && npm i && npm i --dev && npm run build && mv dist/browser ../api/dist/front-admin && cd ..",
"build:front": "cd front && npm i && npm i --dev && npm run build && mv dist/browser ../api/dist/front && cd ..",
"build:package": "cp package.json ./api/dist/.",
"start:production": "cd api && npm run start:production"
}
}