d7e4e52fd3
V2 was the legacy single-app Vite playground. Per the 2026-05-01 atelier design brainstorm, V3 is the sole authoring target going forward. MediaManager and NetworkPanel features explicitly retired (no porting). Removed: - frontend-scratch-v2/ entirely (50 files, ~11k LOC) Retargeted to frontend-v3 + pnpm: - Makefile: FRONTEND_DIR, frontend-typecheck/test/build (renamed from frontend-lint as eslint not yet wired in V3) - tools/dev/zacus.sh: FRONTEND_ROOT, action commands - tools/dev/zacus_tui.py: action_frontend_tests + build cwd - .github/workflows/validate.yml: pnpm/action-setup, cache: pnpm, --frozen-lockfile, typecheck step added Documentation cleanup: - Root CLAUDE.md: Architecture, Where to Look, Nested Guidance lines purged of V2; pointer to atelier design doc added - frontend-v3/CLAUDE.md: V2 vs V3 section removed; editor description points to fusion design doc - desktop/CLAUDE.md: V2 anti-pattern removed - specs/CLAUDE.md: cross-stack pair example updated to packages/scenario-engine Archive: tag archive/frontend-scratch-v2-final on the commit immediately preceding deletion preserves the last state where V2 still worked. Acceptance: - rg "frontend-scratch-v2" in code paths -> 0 hits - make frontend-test -> 11/11 green (3 skipped) - make frontend-build -> 6/6 green
66 lines
2.0 KiB
Makefile
66 lines
2.0 KiB
Makefile
PYTHON ?= python3
|
|
SCENARIO ?= game/scenarios/zacus_v2.yaml
|
|
FRONTEND_DIR ?= frontend-v3
|
|
|
|
.PHONY: bootstrap-validators bootstrap-docs scenario-validate audio-validate printables-validate export validate-runtime-bundle content-checks runtime3-compile runtime3-simulate runtime3-verify runtime3-test runtime3-firmware-bundle frontend-typecheck frontend-test frontend-build docs-build docs-serve all-validate images
|
|
|
|
bootstrap-validators:
|
|
bash tools/setup/install_validators.sh
|
|
|
|
bootstrap-docs:
|
|
$(PYTHON) -m pip install --user --break-system-packages -r tools/requirements/docs.txt
|
|
|
|
scenario-validate:
|
|
$(PYTHON) tools/scenario/validate_scenario.py $(SCENARIO)
|
|
|
|
audio-validate:
|
|
$(PYTHON) tools/audio/validate_manifest.py audio/manifests/zacus_v2_audio.yaml
|
|
|
|
printables-validate:
|
|
$(PYTHON) tools/printables/validate_manifest.py printables/manifests/zacus_v2_printables.yaml
|
|
|
|
export:
|
|
$(PYTHON) tools/scenario/export_md.py $(SCENARIO)
|
|
|
|
validate-runtime-bundle:
|
|
$(PYTHON) tools/scenario/validate_runtime_bundle.py
|
|
|
|
content-checks:
|
|
bash tools/test/run_content_checks.sh
|
|
|
|
runtime3-compile:
|
|
$(PYTHON) tools/scenario/compile_runtime3.py $(SCENARIO)
|
|
|
|
runtime3-simulate:
|
|
$(PYTHON) tools/scenario/simulate_runtime3.py $(SCENARIO)
|
|
|
|
runtime3-verify:
|
|
$(PYTHON) tools/scenario/verify_runtime3_pivots.py $(SCENARIO)
|
|
|
|
runtime3-test:
|
|
$(PYTHON) -m unittest discover -s tests/runtime3 -p 'test_*.py'
|
|
|
|
runtime3-firmware-bundle:
|
|
$(PYTHON) tools/scenario/export_runtime3_firmware_bundle.py $(SCENARIO)
|
|
|
|
frontend-typecheck:
|
|
cd $(FRONTEND_DIR) && pnpm typecheck
|
|
|
|
frontend-test:
|
|
cd $(FRONTEND_DIR) && pnpm test
|
|
|
|
frontend-build:
|
|
cd $(FRONTEND_DIR) && pnpm build
|
|
|
|
docs-build:
|
|
$(PYTHON) -m mkdocs build --strict
|
|
|
|
docs-serve:
|
|
$(PYTHON) -m mkdocs serve
|
|
|
|
all-validate: scenario-validate audio-validate printables-validate validate-runtime-bundle runtime3-compile runtime3-simulate runtime3-verify runtime3-test
|
|
@echo "All validations passed."
|
|
|
|
images:
|
|
$(PYTHON) tools/images/generate_printables.py --manifest printables/manifests/zacus_v2_printables.yaml
|