From f6955e34489c79f6d5b764cb6a39b1387366b433 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Sun, 8 Nov 2026 21:56:29 +0100 Subject: Phase 0: project scaffolding - server/: Dart game-server package (shelf + WebSocket) with the hello/welcome handshake, ping/pong, error responses, healthz, static SPA serving with SPA fallback, and smoke tests (5/5) - web/: Svelte 5 + TypeScript SPA with the protocol client, connection-status page, vitest and svelte-check; Vite dev server proxies /ws to the Dart server - game data assets copied from the read-only reference app into server/assets/ (data, images, i18n, fonts, testData) - PLAN.md implementation plan and progress tracker; README rewritten for the web app; AGPLv3 LICENSE inherited from the reference app; .gitignore; scripts/ci.sh (full pipeline) - CLAUDE.md project guidance Verified: scripts/ci.sh passes end-to-end; live smoke confirms the server serves the built SPA at / and answers a WebSocket hello with a welcome message. --- scripts/ci.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 scripts/ci.sh (limited to 'scripts/ci.sh') diff --git a/scripts/ci.sh b/scripts/ci.sh new file mode 100755 index 0000000..7115f60 --- /dev/null +++ b/scripts/ci.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash +# CI for X-Haven web: analyze + test the Dart server, typecheck + test + build +# the Svelte web app. +set -euo pipefail +cd "$(dirname "$0")/.." + +echo "==> server: dart analyze" +(cd server && dart analyze) + +echo "==> server: dart test" +(cd server && dart test) + +echo "==> web: typecheck" +(cd web && npm run check) + +echo "==> web: tests" +(cd web && npm run test) + +echo "==> web: build" +(cd web && npm run build) + +echo "CI OK" -- cgit v1.3.1