Skip to content

One copy tool for example games instead of one in the editor and one in the engine #298

Open

Description

@Exeloo

Which package or tooling is this feature request for?

other

Feature

The editor and the engine each have their own tool to copy example games from a local examples checkout: scripts/examples.mjs here (#295) and scripts/examples.ts in the engine (NanoForge-dev/Engine#516). They find the checkout the same way (--from, NANOFORGE_EXAMPLES, ../examples, a prompt) and copy the same layout, but differ in details (the copy folder, --engine linking here, link: dependencies there) and already drifted once during review (relative paths and --games parsing were fixed in the engine only).

Ideal solution or implementation

One shared copy: in the examples repository itself (a script both repos call), or a small package both use.

Alternative solutions or implementations

Keep both, and list the shared behaviour in both repos' docs so a change to one is made to the other.

Other context

No response

Activity

  1. added
    enhancement
    on Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions