Skip to content

9. Ship it ​

Goal: a page on a static host.

sh
npm run typecheck   # the project against the packages' types
npm test            # the missions
npm run build       # the page into dist/, the maps and the game's folder with it
npm run preview     # the built page served here, to look at before it goes

Upload dist/ to any static host (GitHub Pages, Netlify, an S3 bucket). It holds the maps, public/games/campaign/, only the shared art the game uses, the stylesheet and the typefaces. Progress and saves live in the player's browser. A server (npm run server) is only needed for online games. See Ship it.

Where to go from here ​