.PHONY: dev test test-fast docs docs-build landing showcase build-showcase build clean

# Serve landing page on :8090 and docs on :8000
dev:
	python -m http.server 8090 --directory landing & uv run mkdocs serve

# Run all tests
test:
	uv run pytest tests/ -v --tb=short

# Run tests quickly (stop on first failure)
test-fast:
	uv run pytest tests/ -x --tb=short -q

# Serve docs locally (MkDocs)
docs:
	uv run mkdocs serve

# Build docs to site/
docs-build:
	uv run mkdocs build

# Serve landing page locally
landing:
	python -m http.server 8090 --directory landing

# Serve component showcase on :8080 (live reload)
showcase:
	uv run python serve_showcase.py

# Build showcase to static HTML for production
build-showcase:
	uv run python build_showcase.py site/showcase

# Build everything for production (docs + showcase)
build: docs-build build-showcase

# Remove build artifacts
clean:
	rm -rf site/ dist/ *.egg-info .pytest_cache
