This repository has been archived by the owner on Sep 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
30 lines (30 loc) · 2.2 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
{
"name": "skole-monorepo",
"version": "1.0.0",
"license": "UNLICENSED",
"author": "Skole Team",
"scripts": {
"start": "docker-compose up",
"start:renew-volumes": "yarn start --renew-anon-volumes",
"build": "docker-compose build",
"build:backend": "yarn build backend",
"build:frontend": "yarn build frontend",
"start-prodlike": "docker-compose --file docker-compose-prodlike.yml up",
"build-prodlike": "docker-compose --file docker-compose-prodlike.yml build",
"stop": "docker-compose down",
"backend:makemigrations": "docker-compose run --rm backend sh -c 'python manage.py makemigrations'",
"backend:migrate": "docker-compose run --rm backend sh -c 'python manage.py migrate'",
"backend:create-superuser": "docker-compose run --rm backend sh -c 'python manage.py createsuperuser'",
"backend:import-test-data": "docker-compose run --rm backend sh -c 'python manage.py loaddata skole/fixtures/*.yaml'",
"backend:makemessages": "docker-compose run --no-deps --rm backend sh -c 'python manage.py makemessages --all'",
"backend:compilemessages": "docker-compose run --no-deps --rm backend sh -c 'python manage.py compilemessages'",
"backend:setup": "docker-compose run --rm backend sh -c 'python manage.py migrate && python manage.py compilemessages && python manage.py loaddata skole/fixtures/*.yaml'",
"backend:test": "docker-compose run --rm backend sh -c 'pytest --verbose --cov-report=html --cov=. .'",
"backend:type-check": "docker-compose run --no-deps --rm backend sh -c 'mypy .'",
"backend:lint": "docker-compose run --no-deps --rm backend sh -c 'flake8 . && pylint *.py config/ skole/'",
"backend:format": "docker-compose run --no-deps --rm backend sh -c 'autoflake --recursive --in-place --remove-all-unused-imports --ignore-init-module-imports . && isort . && docformatter --recursive --in-place --wrap-summaries=88 --wrap-descriptions=88 --pre-summary-newline . && black . && python manage.py graphql_schema'",
"frontend:type-check": "docker-compose run --rm frontend sh -c 'yarn type-check'",
"frontend:lint": "docker-compose run --rm frontend sh -c 'yarn lint'",
"frontend:format": "docker-compose run --rm frontend sh -c 'yarn format'"
}
}