2023-01-02 23:13:26 +00:00
|
|
|
.PHONY: createsuperuser
|
|
|
|
|
2023-01-02 19:03:31 +00:00
|
|
|
all: css migrate
|
|
|
|
|
|
|
|
initialize: css migrate loadplatforms
|
|
|
|
|
2023-01-02 23:13:26 +00:00
|
|
|
HTMLFILES := $(shell find src\web\tracker\templates -type f)
|
|
|
|
|
|
|
|
css: src\input.css $(HTMLFILES)
|
2023-01-02 19:03:31 +00:00
|
|
|
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:
|
2023-01-02 23:13:26 +00:00
|
|
|
python src\web\manage.py loaddata sample.yaml
|
|
|
|
|
|
|
|
createsuperuser:
|
|
|
|
python src\web\manage.py createsuperuser
|