timetracker/Makefile

46 lines
1.0 KiB
Makefile
Raw Normal View History

2023-01-03 21:04:22 +00:00
.PHONY: createsuperuser shell
2023-01-02 19:03:31 +00:00
all: css migrate
2023-01-03 11:34:50 +00:00
initialize: npm css migrate loadplatforms
2023-01-02 19:03:31 +00:00
2023-01-02 23:17:23 +00:00
HTMLFILES := $(shell find src/web/tracker/templates -type f)
2023-01-03 11:34:50 +00:00
npm:
npm install
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:
poetry run python src/web/manage.py makemigrations
2023-01-02 19:03:31 +00:00
migrate: makemigrations
poetry run python src/web/manage.py migrate
2023-01-02 19:03:31 +00:00
dev: migrate
TZ=Europe/Prague poetry run python src/web/manage.py runserver
2023-01-02 19:03:31 +00:00
dumptracker:
poetry run python src/web/manage.py dumpdata --format yaml tracker --output tracker_fixture.yaml
2023-01-02 19:03:31 +00:00
loadplatforms:
poetry run python src/web/manage.py loaddata platforms.yaml
2023-01-02 19:03:31 +00:00
loadsample:
poetry run python src/web/manage.py loaddata sample.yaml
createsuperuser:
poetry run python src/web/manage.py createsuperuser
2023-01-03 21:04:22 +00:00
shell:
poetry run python src/web/manage.py shell
2023-01-05 11:19:56 +00:00
poetry.lock: pyproject.toml
2023-01-05 11:19:56 +00:00
poetry install
test: poetry.lock
poetry run pytest