Add Makefile

This commit is contained in:
Lukáš Kucharczyk 2023-01-02 20:03:31 +01:00
parent a115adae28
commit 0f2f0d281e
1 changed files with 27 additions and 0 deletions

27
Makefile Normal file
View File

@ -0,0 +1,27 @@
all: css migrate
initialize: css migrate loadplatforms
css: src\input.css src\web\tracker\templates\*.html
npx tailwindcss -i .\src\input.css -o .\src\web\tracker\static\base.css
css-dev: css
npx tailwindcss -i .\src\input.css -o .\src\web\tracker\static\base.css --watch
makemigrations:
python src\web\manage.py makemigrations
migrate: makemigrations
python src\web\manage.py migrate
dev: migrate
python src\web\manage.py runserver
dumptracker:
python src\web\manage.py dumpdata --format yaml tracker --output tracker_fixture.yaml
loadplatforms:
python src\web\manage.py loaddata platforms.yaml
loadsample:
python src\web\manage.py loaddata sample.yaml