generated from coulomb/repo-seed
Replace vergabe's blue brand-* palette with whynot's near-black/paper/yellow visual language. Tokens vendored at static/src/vendor/whynot-design/ (synced from commit 9419f16 via scripts/sync-whynot-design.sh / make sync-whynot-design). main.css imports the vendored CSS first, exposes ink/paper/hi as Tailwind @theme tokens (bg-paper, text-ink, border-line, etc.), and re-tones every component class (.btn-*, .card, .field-row, .phase-*, .form-input, .table-*, .sidebar-*). Border radii drop to whynot's 0-4px; .card loses its shadow. Legacy text-brand-* / bg-brand-* / border-brand-* template references are kept working via @theme aliases that map the old blue scale onto the whynot ink ramp — Phase 1 is tokens-only, no template churn. btn-danger keeps an off-spec red (#B22222) as a local --danger var until upstream defines a canonical destructive color. base.html body class swapped: bg-slate-50 → bg-paper-2 text-ink. Phase 2 (component adoption) deferred until whynot-design ships Lit web components + missing atoms (Card, Modal, Input, Table, Toast). See wiki/DesignSystem.md and history/2026-05-23-whynot-design-cross-framework-analysis.md. Verified: 8/8 e2e tests pass; dev server boots; static/dist/main.css contains no #3b5bdb references. Visual pixel-level verification still pending Bernd's browser walk.
47 lines
1.5 KiB
Makefile
47 lines
1.5 KiB
Makefile
.PHONY: help db dev css seed migrate test lint shell superuser collectstatic sync-whynot-design
|
|
|
|
.DEFAULT_GOAL := help
|
|
|
|
help: ## List available make targets
|
|
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) \
|
|
| awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-16s\033[0m %s\n", $$1, $$2}'
|
|
|
|
db: ## Start PostgreSQL via Docker (skips if already reachable on :5432)
|
|
@if nc -z localhost 5432 2>/dev/null; then \
|
|
echo "✓ DB bereits erreichbar auf :5432 — kein Docker-Start nötig"; \
|
|
else \
|
|
docker compose -f docker-compose.dev.yml up -d; \
|
|
fi
|
|
|
|
dev: ## Start Django dev server on :9000
|
|
uv run manage.py runserver 0.0.0.0:9000
|
|
|
|
css: ## Start Tailwind CSS watcher (Vite, rebuild on change)
|
|
npm run dev
|
|
|
|
seed: ## Load dev seed data — users, one Ausschreibung, Lose, etc. (idempotent)
|
|
uv run manage.py seed_dev
|
|
|
|
superuser: ## Create a Django superuser for /admin/ access
|
|
uv run manage.py createsuperuser
|
|
|
|
migrate: ## Generate and apply all pending migrations
|
|
uv run manage.py makemigrations
|
|
uv run manage.py migrate
|
|
|
|
test: ## Run the full pytest test suite
|
|
uv run pytest
|
|
|
|
lint: ## Run ruff (style) and mypy (types)
|
|
uv run ruff check .
|
|
uv run mypy vergabe_teilnahme/
|
|
|
|
shell: ## Open a Django shell (shell_plus if available)
|
|
uv run manage.py shell_plus 2>/dev/null || uv run manage.py shell
|
|
|
|
collectstatic: ## Collect static files into staticfiles/ (production step)
|
|
uv run manage.py collectstatic --noinput
|
|
|
|
sync-whynot-design: ## Re-vendor whynot-design CSS+tokens from the pinned ref
|
|
./scripts/sync-whynot-design.sh
|