From 0f2f0d281e6364e361bd2495ad55fe520232d39d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Mon, 2 Jan 2023 20:03:31 +0100 Subject: [PATCH] Add Makefile --- Makefile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..37f714c --- /dev/null +++ b/Makefile @@ -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 \ No newline at end of file