Repository navigation
fix(schematics): drop the -r option and move the templates to engine 3 packets - #336
Merged
Merged
Conversation
…n with a typed packet
… document hasserver
…e -r row The js validate now type-checks under checkJs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Closes #297
Closes #305
Fixes the projects
nf newgenerates, found while verifying the tester ATP:nf dev -r/nf build -r/nf start -rbecomenf dev/nf build/nf start(the CLI has no-r; at a workspace root these already run every app). The README rows, sentence and the-rwarnings in the docs are gone.hasServer. A solo game no longer loads a network it never uses.ctx.network.tcpAPI to engine 3 packets:validatedrops anything that isn't two numbers, so the template teaches the safe pattern for packets a server receives. The packet stays on the default reliable channel: an unreliable one needs UDP/WebRTC, and a starter game should keep working where UDP is blocked.How do you test this PR?
npm run devwithunknown option '-r'; the multiplayer server crashes on its first tick (ctx.network.tcpis undefined).After:
nf new --serverwith the built CLI, in TypeScript and in JavaScript:npm run buildsucceeds,npm startserves it, and the red circle moves in Chrome (position synced from the server).libs/schematicse2e: 154/154 pass, including new tests:nf dev/nf build/nf start, and the README has no-r;NetworkClientLibrary, the dependency and the packet;pnpm run lintpasses at the root and inlibs/schematics. The pre-push hook ran build, lint, and unit and e2e tests: all pass.validatetype-checks withtsc --allowJs --checkJs --strict.Merge danger
Door: two-way (templates only; existing projects are untouched).
Blast radius: small.
@nanoforge-dev/schematics, used at runtime by@nanoforge-dev/clionly. It reaches users with the next CLI release; nothing deploys on merge.Follow-up issues
-r)^2, and network 2 has nodefinePacket)Quality gate
new.mdx,workspace.mdx,project.mdx,build-and-deploy.mdx,schema.json, generated READMEs and AGENTS.md