diff --git a/Makefile b/Makefile index 85ae593..700f5f1 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +1,19 @@ BACKEND = cd backend && uv run -.PHONY: setup test backend frontend fetch-static crawl extract artifact calibrate refresh autoplay +.PHONY: install dev test build fetch-static crawl extract artifact calibrate refresh autoplay -setup: +install: cd backend && uv sync cd frontend && npm install +dev: + $(BACKEND) uvicorn tft.api.app:app --reload --port 8123 & cd frontend && npm run dev + test: - $(BACKEND) pytest -q + $(BACKEND) pytest -x -q -backend: - $(BACKEND) uvicorn tft.api.app:app --reload --port 8123 - -frontend: - cd frontend && npm run dev +build: + cd frontend && npm run build fetch-static: $(BACKEND) python -m tft.cli fetch-static