Yeoman generator for the nitro frontend framework
npm install generator-nitro


git init.
npx -p yo -p generator-nitro@latest -- yo nitro
`
then install with desired node version
`
npm install
`
$3
Updating a project to the newest nitro version is quite simple:
`
npm run nitro:update
`
... then
- validate all local changes
- run the 'clean' task to remove the package-lock and the 'node_modules' folder
- run 'install'
`
npm run clean
npm install
`
$3
On creating a new project, you will be guided through some configuration options:
- Desired Name --name= (default: current directory name)
- Desired template engine --templateEngine= (hbs or twig; default: hbs)
- Desired js compiler --jsCompiler= (ts or js; default: ts)
- Using theming feature --themes (default: false)
- Using client side templates --clientTpl (default: false)
- Including example code --exampleCode (default: false)
- Installing nitro-exporter" --exporter (default: false)
It's possible to pass in these options through the command line:
`
npx -p yo -p generator-nitro@latest -- yo nitro --name=myproject --templateEngine=hbs --jsCompiler=ts --themes --clientTpl --exampleCode --exporter
`
You may bypass the questions with --skip-questions. This will use the defaults for not specified options
`
npx -p yo -p generator-nitro@latest -- yo nitro --name=myproject --clientTpl --exporter --skip-questions
`
$3
If you start the generator in an existing project, you will be asked to update the project.
It is best to overwrite all local files and check the differences after.
Updating to a new major version needs some more work. Please check the release notes
$3
Available generators:
- yo nitro (aka yo nitro:app / generate or update a project)
- yo nitro:pattern [name] (create or update a pattern)
- yo nitro:server` (create an executable light version of the project)