Skip to content

Web app setup: Phaser, Vite, Pages build - #36

Merged
evan-rawson-software merged 2 commits into
mainfrom
issue-21-web-setup
Nov 19, 2026
Merged

evan-rawson-software merged 2 commits into
mainfrom
issue-21-web-setup

Conversation

@evan-rawson-software

Copy link
Copy Markdown
Owner

Adds the browser game shell: Phaser 4.2.1 and Vite 8.3.8, src/game/ for screen code, an empty 1920x1080 scene (Scale.FIT, centred, table-green background) saying "Pass the Spark". Vite base is /pass-the-spark/. deploy.yml now runs npm ci and npm run build and deploys dist/; site/ is removed. CLAUDE.md has the screen-code rule and the dev/build commands.

Verified locally: npm run typecheck, npm test and npm run build pass. The dev server renders the scene in headless Chromium with no console errors.

Closes #21


Generated by Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kd8cM95An5P8HxDJ2tRecM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kd8cM95An5P8HxDJ2tRecM

@evan-rawson-software evan-rawson-software left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Required fixes: none.

Checked on a clean checkout of the branch head (d0e5891):

  • npm ci, npm run typecheck, npm test (21 passed) and npm run build all pass.
  • Served with vite preview --base /pass-the-spark/ and loaded in Playwright. The canvas is 1920x1080, scaled to fit and centred. The background is table green and "Pass the Spark" is drawn. The page and JS bundle load from /pass-the-spark/ with 200s. There are no console errors, only WebGL driver performance warnings from headless Chromium. The preview server has been stopped.
  • Dependencies: only phaser 4.2.1 and vite 8.3.8 were added, both the current npm versions. The lockfile is committed and only gained phaser and eventemitter3 as new packages.
  • Layout: src/game/ holds the screen code. Nothing in src/engine/ imports from it, and there is no game logic in src/game/. tsconfig still includes src, so src/game/ is type-checked, and vite.config.ts is added.
  • CLAUDE.md has the one-line screen rule, plus dev and build in Commands.
  • deploy.yml uses setup-node with the npm cache, then npm ci, npm run build, and uploads dist. Permissions and concurrency are unchanged. actions/checkout, setup-node, configure-pages, upload-pages-artifact and deploy-pages are on v7, v7, v6, v5 and v5, which are the latest majors from git ls-remote. site/ is removed, with its page moved to the root index.html.
  • ci.yml is untouched. There are no tests, as the issue says. Nothing out of scope.

Spec questions: none.


Generated by Claude Code

@evan-rawson-software
evan-rawson-software merged commit 8c6c2b3 into main Nov 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Web app setup: Phaser, Vite, Pages build

2 participants