timetracker/Makefile

34 lines
786 B
Makefile
Raw Normal View History

.PHONY: createsuperuser
2023-01-02 19:03:31 +00:00
all: css migrate
initialize: css migrate loadplatforms
2023-01-02 23:17:23 +00:00
HTMLFILES := $(shell find src/web/tracker/templates -type f)
css: src/input.css
npx tailwindcss -i ./src/input.css -o ./src/web/tracker/static/base.css
2023-01-02 19:03:31 +00:00
css-dev: css
npx tailwindcss -i ./src/input.css -o ./src/web/tracker/static/base.css --watch
2023-01-02 19:03:31 +00:00
makemigrations:
python src/web/manage.py makemigrations
2023-01-02 19:03:31 +00:00
migrate: makemigrations
python src/web/manage.py migrate
2023-01-02 19:03:31 +00:00
dev: migrate
python src/web/manage.py runserver
2023-01-02 19:03:31 +00:00
dumptracker:
python src/web/manage.py dumpdata --format yaml tracker --output tracker_fixture.yaml
2023-01-02 19:03:31 +00:00
loadplatforms:
python src/web/manage.py loaddata platforms.yaml
2023-01-02 19:03:31 +00:00
loadsample:
python src/web/manage.py loaddata sample.yaml
createsuperuser:
python src/web/manage.py createsuperuser