-
Notifications
You must be signed in to change notification settings - Fork 54
/
package.json
25 lines (25 loc) · 1.67 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
{
"name": "simple-report",
"version": "0.1.0",
"private": true,
"devDependencies": {
"@arkweid/lefthook": "^0.7.7"
},
"scripts": {
"e2e": "docker rm cypress || echo \"\" && docker compose --env-file .env -f docker-compose.yml -f docker-compose.cypress.yml up --remove-orphans --abort-on-container-exit --exit-code-from cypress && docker compose down && docker rm cypress",
"spotless": "cd backend; ./gradlew spotlessApply; cd ..",
"start": "./start.sh",
"locust": "./start.sh -l",
"build": "./start.sh -b",
"db": "docker compose exec db psql -U postgres simple_report",
"db:user:app": "docker compose exec db psql -U simple_report_app simple_report",
"db:user:migrations": "docker compose exec db psql -U simple_report_migrations simple_report",
"anon:dump": "./backend/db-setup/anonymize-db.sh",
"anon:detect": "./backend/db-setup/anonymize-detect.sh",
"anon:restore": "docker cp backend/db-setup/anon_dump.sql db:/usr/local/lib/ && docker exec db /usr/local/lib/nuke-db.sh && docker exec -e SNAPSHOT=/usr/local/lib/anon_dump.sql -e SR_DB_USER=simple_report_migrations db /usr/local/lib/restore-db.sh",
"anon:remove": "./backend/db-setup/remove-anon.sh",
"test:frontend": "docker compose run --rm -e REACT_APP_BASE_URL=https://simplereport.gov -e REACT_APP_BACKEND_URL=https://simplereport.gov/api -e REACT_APP_OKTA_ENABLED=false frontend yarn test",
"test:backend": "docker compose --env-file .env.test -p simple-report-tests up -d db; docker compose --env-file .env.test -p simple-report-tests run --rm backend gradle test -PskipDbSetup=true -PtestDbHost=db; docker compose -p simple-report-tests down -v"
},
"dependencies": {}
}