Skip to main content

Commands

Run from app.gap.Tsum/.

CommandDoes
npm run typecheckAll four compilations: the game bundle, the settings page, the Quick Bar page, and src/gapWorkflow.ts alone. typecheck:game, typecheck:settings, typecheck:quickbar, typecheck:workflow for one.
npm run buildCompile both halves, regenerate PAGE_DISPATCH.md and EVENTS.md, run the traces and checks, inline the pages into dist/, write the channel's archive and its .sha256. -- --channel Beta picks the channel; npm run build:ps is the PowerShell wrapper.
npm run buildAndAdbBuild, then push every dist/ file to the DEV folder (scripts/DEV) on each connected emulator; buildAndAdb:beta builds the Beta channel.
npm run adbPush an existing dist/ over the installed script's folder (scripts/Official GAP/Tsum Tsum/). buildAndAdb is the one that targets scripts/DEV.
npm run pages:docsRegenerate PAGE_DISPATCH.md. pages:docs:check fails if it is stale.
npm run events:docsRegenerate EVENTS.md from the emitEvent call sites. events:docs:check fails if it is stale, and reports an emit outside Emit or one event with two payload shapes.
npm run dispatch:evalThe dispatch queue and the scheduler against their golden traces; exit 1 on a changed row or a broken invariant. -- -v, -- --only X, -- --dispatch / --scheduler, -- --strict.
npm run dispatch:updateRewrite the goldens from the bundle as it stands. The diff is the review.
npm run map:checkVerify CODEMAP.md against the tree.
npm run i18n:checkWhat each language is missing; a data-i18n naming no key.
npm run workflow:checkDrives the workflow runner and Tsum's run mode in the built bundle.
npm run live:checkEvery setting a preset carries says when it reaches a running script, and the value survives the round trip.
npm run release:alphaBuild the Alpha channel and publish it to the catalogue; release:beta, release:production likewise. -- --dry-run shows the entry without writing; -- --yes skips the note review.

npm run build runs pages:docs, events:docs, dispatch:eval and map:check as optional steps that print findings and never block, and live:check as a required one.

Not in this package​

Source comments occasionally cite a command this package.json does not define. Those belong to a separate, private maintainers' repository that runs against this one's build; treat the result they produce (a threshold, a timing) as the measurement behind the number in the source, and leave the number alone unless you can measure it again.

The site's own commands​

The documentation site under website/ has its own scripts — start, build, sync, refs:check — described in website/README.md.