This repository is based on npm workspaces.
Always run npm ci in the root of this repository to ensure proper dependency installation.
Before using, you need of course node installed (Version).
Nitro and the Nitro generator are currently tested with the node LTS versions 22 and 24.
- Install base project:
npm ci
- Start example project:
npm start --workspace=project-nitro
The sample projects located under 'packages/project-xxx' are used to develop new features before adding them to the yeoman generator in the package 'packages/generator-nitro'.
- Develop your new feature in the respective sample project
- After it works there, enhance the yeoman generator
- Add a test in the folder 'packages/generator-nitro/tests'
- Run
npm installin the root of the repo to link to the yeoman generator with your newest changes - Test your yeoman generator change by creating a new project
- cd to the 'project-new' package
- Run
npm startand use the yeoman config you adjusted / enhanced - The generator runs with your local recent changes
- Compare the output with your change in the sample project