docs: document local-dev prerequisites and fix stale test instructions #6

Closed
necrogami wants to merge 1 commit from docs/readme-local-dev into main
Contributor

Summary

The README's local-dev instructions said to just run python3 scripts/ssr-server.py . 5175 — but on a fresh clone that dies before serving anything, because the Python script shells out to node scripts/ssr-build.mjs, which fails with ERR_MODULE_NOT_FOUND until npm install has run.

  • New Prerequisites section — Python 3 + Node 18+ + one-time npm install; notes the first-build npx esbuild fetch and that vendor/break_infinity.mjs is unused
  • Local-dev note — the SSR build rewrites the checked-in index.html (git SHA stamp), dirtying the tree (see #4)
  • Tests section corrected — lists all four suites; fixes the false "no package.json test script" claim (the script exists but is stale scaffold and fails on current Node — see #2)

Verification

  • Clean slate: rm -rf node_modules → README command fails with ERR_MODULE_NOT_FOUND; after npm install the server builds (1.2s) and serves HTTP 200 (93 KB SSR page)
  • Driven in a real browser: climb loop ticks, server-backed saves round-trip, reload restores progress
  • All four test suites pass when run directly; npm test confirmed broken

https://claude.ai/code/session_011eZTAZ5nd74YqrBaNpHYV9

## Summary The README's local-dev instructions said to just run `python3 scripts/ssr-server.py . 5175` — but on a fresh clone that dies before serving anything, because the Python script shells out to `node scripts/ssr-build.mjs`, which fails with `ERR_MODULE_NOT_FOUND` until `npm install` has run. - **New Prerequisites section** — Python 3 + Node 18+ + one-time `npm install`; notes the first-build `npx esbuild` fetch and that `vendor/break_infinity.mjs` is unused - **Local-dev note** — the SSR build rewrites the checked-in `index.html` (git SHA stamp), dirtying the tree (see #4) - **Tests section corrected** — lists all four suites; fixes the false "no `package.json` test script" claim (the script exists but is stale scaffold and fails on current Node — see #2) ## Verification - Clean slate: `rm -rf node_modules` → README command fails with `ERR_MODULE_NOT_FOUND`; after `npm install` the server builds (1.2s) and serves HTTP 200 (93 KB SSR page) - Driven in a real browser: climb loop ticks, server-backed saves round-trip, reload restores progress - All four test suites pass when run directly; `npm test` confirmed broken https://claude.ai/code/session_011eZTAZ5nd74YqrBaNpHYV9
The README's "Run it" section only said to run the Python SSR server,
but on a fresh clone that fails before serving anything: the server
shells out to `node scripts/ssr-build.mjs`, which needs `npm install`
first (bare `import 'break_infinity.js'` in src/utils/Decimal.js).
Verified from a clean slate (rm -rf node_modules → npm install →
server → HTTP 200).

- Add Prerequisites section: Python 3 + Node 18+ + one-time npm
  install, note the npx esbuild fetch and unused vendor/ file
- Note that the SSR build rewrites the checked-in index.html
- Tests: list all four suites (all verified passing), correct the
  false "no package.json test script" claim — the script exists but
  is stale scaffold and fails on current Node

Claude-Session: https://claude.ai/code/session_011eZTAZ5nd74YqrBaNpHYV9
og_arist0tle closed this pull request 2026-07-20 20:43:09 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
og_arist0tle/dark-spire!6
No description provided.