seriesoftubes/scripts
Frederic Jung 67a40942b4
Split the game page into partials under src/, assembled into one index.html at build
site/index.html (900 KB of HTML, CSS and JS in one file) becomes src/: a shell
(src/index.html), styles/ and game/, concatenated in path order by
scripts/lib/page.js. The assembled page is byte-identical to the old file, so
load time and in-game performance are unchanged.

- scripts/build.js replaces build.sh (same env vars, same output)
- npm run dev: a zero-dependency dev server that assembles on every request
- tests assemble the page in memory; npm test runs every tests/*.test.js
- perf-bench takes --base-ref to build a git ref's page
- scripts/legacy/split-index-html.js is the splitter, kept for older branches
2026-10-27 10:05:56 +01:00
..
legacy Split the game page into partials under src/, assembled into one index.html at build 2026-10-27 10:05:56 +01:00
lib Split the game page into partials under src/, assembled into one index.html at build 2026-10-27 10:05:56 +01:00
build.js Split the game page into partials under src/, assembled into one index.html at build 2026-10-27 10:05:56 +01:00
dev.js Split the game page into partials under src/, assembled into one index.html at build 2026-10-27 10:05:56 +01:00
i18n-check.js Split the game page into partials under src/, assembled into one index.html at build 2026-10-27 10:05:56 +01:00
perf-bench.js Split the game page into partials under src/, assembled into one index.html at build 2026-10-27 10:05:56 +01:00
perf-browser.js Benchmark in real Chromium too, and only call a row slower when the samples say so 2026-10-26 12:04:57 +01:00
perf-fixture.js Performance benchmark on a big network, posted on every PR 2026-10-26 06:39:23 +01:00
perf-stats.js Benchmark in real Chromium too, and only call a row slower when the samples say so 2026-10-26 12:04:57 +01:00
release-notes.js Persist games across reloads and announce new releases 2026-10-23 11:42:28 +02:00
test.js Split the game page into partials under src/, assembled into one index.html at build 2026-10-27 10:05:56 +01:00