This repo now separates the authoring sources from the GitHub Pages output so it is easier to maintain the app.
src/– editable source files (HTML + modular JavaScript + CSS).docs/– built output that remains the GitHub Pages root.scripts/– utility scripts (currently just the simple build copier).
- Make your changes under
src/. - Use
npm run lintto sanity-check the modules. - Run
npm run buildto copy the updated files intodocs/. - Commit both the source files and the generated
docs/artifacts so the hosted site updates.
Because the app loads ES modules, you need to run it over HTTP even when testing locally.
- Build the site if you have changed any sources:
npm run build - Start the local static server:
npm run serve(defaults to http://localhost:8080)- Alternatively, run
npm run devto build and immediately start the server in one step.
- Alternatively, run
- Open the printed URL (
http://localhost:8080/by default) in your browser.