tools/serve.py: build, serve and rebuild on change (t9)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-24 01:07:08 -04:00
co-authored by Claude Opus 5.5
parent 259ad89ded
commit 1a3a848bad
7 changed files with 117 additions and 8 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ code) into one classic script, so they share one global scope and 'use strict' a
src/sim/base.js applies to all of it. No bundler, no dependencies.
Writes:
dist/index.html the full page: open it, or serve dist/ with python -m http.server
dist/index.html the full page: open it, or serve with python3 tools/serve.py
dist/deepgrain-foundry.html the same without <!doctype>/<head>/<body>, for hosts (like a
claude.ai artifact) that wrap the page themselves
dist/bundle-lines.json where each source file starts in dist/index.html, so a line number