Makefile an creator3-Stil angleichen: install/dev/test/build
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
16
Makefile
16
Makefile
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user