.PHONY: dev stop build install extract

PORT ?= 8000

dev:
	npx vite --port $(PORT) --host &
	@echo "Dev server running at http://localhost:$(PORT)"

stop:
	@-pkill -f "vite --port $(PORT)" 2>/dev/null && echo "Stopped dev server" || echo "No dev server running"

build:
	npm run build

install:
	npm install

extract:
	node scripts/extract-data.mjs
