Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.21 KB

File metadata and controls

27 lines (18 loc) · 1.21 KB

challenge-composer

Setup

This project ships as a single self-contained HTML file. There is no dev server, no hosted URL, and no runtime dependencies — just one file you open in a browser.

npm install
npm run build

The build emits dist/index.html with all JS and CSS inlined. Open it directly:

xdg-open dist/index.html   # or just double-click it

It works from file:// — no server required. Drop the file anywhere (USB stick, email attachment, static host) and it runs.

State (drafts, share links) lives in localStorage of whichever origin you open it from.

Notes for agents

  • Do not start a dev server (npm run dev, vite, etc.). The only supported workflow is npm run build → open dist/index.html.
  • After any source edit, re-run npm run build before reporting the task complete. dist/index.html is the shipping artifact; it does not update on its own, so stale builds will hide your changes from anyone who opens the file.
  • vite-plugin-singlefile inlines everything; do not add external <script src> / <link href> references, and do not split chunks — it defeats the single-file guarantee.
  • npm test and npm run typecheck remain the verification commands.