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:17:23 +00:00
|
|
|
HTMLFILES := $(shell find src/web/tracker/templates -type f)
|
2023-01-02 23:13:26 +00:00
|
|
|
|
2023-01-03 11:14:27 +00:00
|
|
|
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
|
2023-01-03 11:14:27 +00:00
|
|
|
npx tailwindcss -i ./src/input.css -o ./src/web/tracker/static/base.css --watch
|
2023-01-02 19:03:31 +00:00
|
|
|
|
|
|
|
makemigrations:
|
2023-01-03 11:14:27 +00:00
|
|
|
python src/web/manage.py makemigrations
|
2023-01-02 19:03:31 +00:00
|
|
|
|
|
|
|
migrate: makemigrations
|
2023-01-03 11:14:27 +00:00
|
|
|
python src/web/manage.py migrate
|
2023-01-02 19:03:31 +00:00
|
|
|
|
|
|
|
dev: migrate
|
2023-01-03 11:14:27 +00:00
|
|
|
python src/web/manage.py runserver
|
2023-01-02 19:03:31 +00:00
|
|
|
|
|
|
|
dumptracker:
|
2023-01-03 11:14:27 +00:00
|
|
|
python src/web/manage.py dumpdata --format yaml tracker --output tracker_fixture.yaml
|
2023-01-02 19:03:31 +00:00
|
|
|
|
|
|
|
loadplatforms:
|
2023-01-03 11:14:27 +00:00
|
|
|
python src/web/manage.py loaddata platforms.yaml
|
2023-01-02 19:03:31 +00:00
|
|
|
|
|
|
|
loadsample:
|
2023-01-03 11:14:27 +00:00
|
|
|
python src/web/manage.py loaddata sample.yaml
|
2023-01-02 23:13:26 +00:00
|
|
|
|
|
|
|
createsuperuser:
|
2023-01-03 11:14:27 +00:00
|
|
|
python src/web/manage.py createsuperuser
|