Spaces:
Running

ostra / Makefile
sumandas's picture
Enforce hf CLI upload workflow in AGENTS.md and Makefile
ba51cdd verified
Raw History Blame Contribute Delete
1.13 kB
.PHONY: setup backend frontend dev test build deploy
setup:
cd backend && uv sync
cd frontend && pnpm install
backend:
cd backend && uv run uvicorn app.main:app --reload --host 127.0.0.1 --port 8000
frontend:
cd frontend && pnpm dev --port 5173
dev:
@echo "Starting Ostra backend (:8000) and frontend (:5173)..."
@(cd backend && uv run uvicorn app.main:app --reload --host 127.0.0.1 --port 8000) & \
(cd frontend && pnpm dev --port 5173) & \
wait
test:
cd backend && uv run pytest -v
cd frontend && pnpm tsc --noEmit && pnpm build
build:
cd frontend && pnpm build
deploy:
hf upload sumandas/ostra . . --repo-type space \
--commit-message "$(or $(MSG),Update Ostra Space)" \
--delete="*" \
--exclude=".git/**" \
--exclude=".git" \
--exclude=".ostra/**" \
--exclude=".pnpm-store/**" \
--exclude="backend/.venv/**" \
--exclude="backend/.pytest_cache/**" \
--exclude="**/*.egg-info/**" \
--exclude="**/__pycache__/**" \
--exclude="**/*.pyc" \
--exclude="frontend/node_modules/**" \
--exclude="frontend/dist/**" \
--exclude="frontend/tsconfig.tsbuildinfo" \
--exclude="**/.DS_Store"