chore(site): live-reload dev server #132
Reference in New Issue
Block a user
Delete Branch "chore/site-live-reload"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
scripts/serve-site.shnow useschokidar-cli+browser-syncinstead of plainpython3 -m http.server: MD edits regenerate HTML, browser reloads on rendered-asset changes.npx(slow once, instant after).npxandpandoc.--draftsflag ordering; drafts are always included now (that's what the dev loop actually wants).CI is intentionally skipped for
scripts/serve-site.shviapaths-ignorein.github/workflows/ci.yml— no Rust surface to test.Test plan
bash -n scripts/serve-site.shclean (syntax valid).scripts/serve-site.sh 9000serves athttp://localhost:9000.drafts/*.mdfile regenerates HTML; browser tab reloads automatically.chokidar/browser-syncprocesses (pgrep -f chokidarempty).pandocornpxproduces a clear install-pointer error.