- SvelteKit SPA with adapter-static, prerender, SSR disabled - Catppuccin Mocha/Latte theme CSS with semantic color tokens - WebSocket client with auto-reconnect and exponential backoff - HTTP API client with JWT auth and 401 handling - Auth state store with localStorage persistence (Svelte 5 runes) - Tournament state store handling all WS message types (Svelte 5 runes) - PIN login page with numpad, 48px touch targets - Updated Makefile frontend target for real SvelteKit build Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
27 lines
470 B
Makefile
27 lines
470 B
Makefile
.PHONY: build run test frontend all clean
|
|
|
|
# Default data directory
|
|
DATA_DIR ?= ./data
|
|
ADDR ?= :8080
|
|
BINARY := cmd/leaf/leaf
|
|
|
|
build:
|
|
CGO_ENABLED=1 go build -o $(BINARY) ./cmd/leaf/
|
|
|
|
run: build
|
|
./$(BINARY) --data-dir $(DATA_DIR) --addr $(ADDR)
|
|
|
|
run-dev: build
|
|
./$(BINARY) --data-dir $(DATA_DIR) --addr $(ADDR) --dev
|
|
|
|
test:
|
|
CGO_ENABLED=1 go test ./...
|
|
|
|
frontend:
|
|
cd frontend && npm install && npm run build
|
|
|
|
all: frontend build
|
|
|
|
clean:
|
|
rm -f $(BINARY)
|
|
rm -rf data/
|