-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
20 lines (20 loc) · 1.14 KB
/
package.json
File metadata and controls
20 lines (20 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
"name": "planit",
"version": "1.0.1",
"private": true,
"scripts": {
"start": "docker-compose -f docker-compose.yml up -d --build",
"test": "docker exec -i planit_api python -m pytest api -W ignore::DeprecationWarning",
"db-save": "docker exec -it planit_postgres pg_dump -U planit planit > ./api/resources/database_data.txt",
"predb-load": "docker exec -i planit_postgres psql -U planit planit -c \"DROP SCHEMA public CASCADE; CREATE SCHEMA public;\"",
"db-load": "docker cp ./api/resources/database_data.txt planit_postgres:/home/",
"postdb-load":"docker exec -i planit_postgres bash -c \"cat /home/database_data.txt | psql -U planit planit\"",
"db-exec": "docker exec -it planit_postgres psql -U planit planit",
"app-lint": "docker exec -t planit_app npm run lint",
"app-prettier": "docker exec -t planit_app npm run prettier",
"api-lint": "docker exec -t planit_api python -m flake8 --ignore F401,E402,E501,W503 ./api",
"api-prettier": "docker exec -t planit_api python -m black ./api",
"lint": "npm run app-lint && npm run api-lint",
"prettier": "npm run app-prettier && npm run api-prettier"
}
}