Repository navigation
chore: move the example games to the examples repository and add pnpm examples - #516
Merged
Merged
Conversation
cube-3d, pong-3d and pong-network now live in NanoForge-dev/examples (basics/graphics-3d, demos/pong-3d, demos/pong-network); the docs link there.
One component or system per file with the editor's TSDoc tags, EditorLibrary registered last, editor-lib from the workspace, and @nanoforge-dev/cli and config 3.0.1.
Copies chosen games of a local examples checkout into the gitignored .examples/, links their engine dependencies to this repository's packages and installs them as their own pnpm workspace, so the engine's lockfile never changes.
A copied link would point back into the examples checkout and let the copy edit the real game.
This was referenced Nov 13, 2026
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 #513
The example games move to the examples repository (NanoForge-dev/examples
feat/centralize-games):example/cube-3d→basics/graphics-3d,example/pong-3d→demos/pong-3d,example/pong-network→demos/pong-network, all on CLI ^3.0.1. Only the end-to-end test games stay here.example/is removed; the docs pages (graphics-3d, network) link to the examples repository.e2e/game,e2e/game-2d,e2e/game-3d) follow the editor's format: one component or system per file, TSDoc tags (@component/@system,@side), literalname,app.use(new EditorLibrary()); engine packagesworkspace:*, CLI and config ^3.0.1.pnpm examples(scripts/examples.ts, devDependency@inquirer/promptsfor the multiple-choice select) copies chosen games from a local examples checkout (--from,NANOFORGE_EXAMPLES,../examples, or asked for) into the gitignored.examples/, links their@nanoforge-dev/*dependencies to this engine's packages, and installs each copy. The real games are never modified (copies, symlinks followed).How do you test this PR?
Run on
HEAD:pnpm build13/13,pnpm lint17/17,pnpm test:unit13/13,pnpm test:e2e(6 passed, includese2e/examples.test.ts),CI=1 pnpm test:e2e:graphics8 passed with unchanged snapshots.pnpm exampleson input-keyboard, pong-network, graphics-3d and basics/network, thenpnpm buildin each copy: "Build succeeded!"; engine and examplesgit statusunchanged. Run frome2e/with a relative--fromand--games " input-keyboard, ": resolved from the caller's folder.Merge danger
Two-way door: no published package or API changes; nothing deploys on merge. Merge after NanoForge-dev/examples
feat/centralize-games(the docs links point at its new folders; the docs pages sync at the next release). The editor reads<engine>/e2e/gameafter NanoForge-dev/Editorfeat/examples-games; the editor'smainstill readsexample/pong-networkfrom a local engine, so merge both together (its CI uses a pinned engine and is not affected).Follow-up issues
Quality gate
pnpm installruns the copy's scripts, as in the checkout)node:prefixes, a type-only import cycle in e2e games); lint: pass