Makefile an creator3-Stil angleichen: install/dev/test/build

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
team3
2026-07-23 00:44:42 +02:00
parent a7c0798d4b
commit d191af34ca

View File

@@ -1,19 +1,19 @@
BACKEND = cd backend && uv run 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 backend && uv sync
cd frontend && npm install cd frontend && npm install
dev:
$(BACKEND) uvicorn tft.api.app:app --reload --port 8123 & cd frontend && npm run dev
test: test:
$(BACKEND) pytest -q $(BACKEND) pytest -x -q
backend: build:
$(BACKEND) uvicorn tft.api.app:app --reload --port 8123 cd frontend && npm run build
frontend:
cd frontend && npm run dev
fetch-static: fetch-static:
$(BACKEND) python -m tft.cli fetch-static $(BACKEND) python -m tft.cli fetch-static