- This repository now uses SvelteKit +
@sveltejs/adapter-staticat the repo root. - Main source lives in:
src/routes/— pages/layout/load functionssrc/lib/components/— reusable Svelte UIsrc/lib/data/— static typed content/datasrc/lib/legacy/— small imperative browser helpers still in usestatic/— images, locales, generated JSON datascripts/— TypeScript preparation/fetch scripts run before build/check/test
- Build output is
build/and should be treated as generated output.
- Prefer TDD + Tidy First.
- Keep component/data boundaries clear; do not reintroduce full-page raw HTML rendering.
- Prefer typed data modules over large inline markup blobs.
- Use pnpm scripts from the repo root:
pnpm run checkpnpm testpnpm run buildpnpm run lint
- If you change generated/static data behavior, update
scripts/fetch-data.tsand verify offline fallback behavior. - If you change asset/base-path behavior, verify
PUBLIC_BASE_PATHcompatibility. - Do not manually edit
build/.
- Run fresh
check,test,build, and diagnostics before claiming completion. - Keep diffs reviewable.
- Remove superseded legacy files rather than keeping parallel dead paths.