1.1 KiB
1.1 KiB
app-web
- Never commit or publish build output (
.wasm,.jsbundles, HTML with the game in it), and never link to a hosted build. - The page's TypeScript (
src/main/ts) runs in the browser with its types stripped (:app-web:pageScripts, Node'sstripTypeScriptTypes), with no bundler: erasable syntax only, relative imports end in.ts, and anything testable goes in a module without side effects (loader.ts,cache-policy.ts) rather thanboot.tsorsw.ts. - TypeScript: no
any; every eslint-disable comment says why; only erasable syntax (no enums, namespaces or parameter properties). - The entry point sets library properties before anything reads them (
LibraryDefaults: Netty in heap mode, JOML); keep new ones there. - Test:
npm run check, and./gradlew :app-web:test(MemoryParityTest: the game's vertex and image bytes over web-classlib's memory against LWJGL's; needs./incari setup). @Asyncmethods complete with a value that says they failed and throw in Java, never throughAsyncCallback.error, which crashes the page (platform-web/AGENTS.md,probes/FetchFailureProbe).