Skip to main content

What are schematics?

NanoForge schematics are code generators built on Angular DevKit. They produce the boilerplate files that every NanoForge project needs — from the initial application scaffold down to individual ECS components and systems. The NanoForge CLI (nf) calls these schematics internally whenever you run commands like nf new or nf create. You can also invoke them directly via the schematics CLI for advanced use cases.

Installation

The schematics package is a dependency of the CLI and does not need to be installed separately. If you want to run schematics without the CLI:
Then invoke directly:

Available schematics

workspace

Scaffold the root of a NanoForge monorepo: nanoforge.config.ts, package.json, TypeScript or JavaScript config, and linting.

project

Generate a client or server project under apps/<part> inside a workspace, including its main.ts entry point, example component/system, and optional Dockerfile.

component

Scaffold an ECS component class with an editor manifest for use in the NanoForge editor.

system

Scaffold an ECS system function with an editor manifest for use in the NanoForge editor.
see the changelog for the full release history.