Otter project initializer
Description
This package is an NPM initializer to generate a web application based on the Otter Framework.
Create an Otter application
This package is simplifying the start of an Otter Framework based application.
Usage
npm create @o3r <project-name> -- [...options]
yarn createis not supported.
On Windows OS, Git Bash terminal is not fully supported by different CLI used behind Otter project and can lead to execution error. We recommend to minimize its usage.
Custom package manager
By default, the npm package manager will be used to generate the project, but you can generate an environment with a specific package manager using the --package-manager option:
npm create @o3r <project-name> -- --package-manager=yarn [...options]The option
--package-manager=yarncan be simplified to--yarn.
At the moment, the
package-manageroption only supportsyarnandnpm.
Custom registry
You can specify the npm's package registry to use.
npm create @o3r <project-name> --registry=<registry-url> -- [...options]It will create a project with a .npmrc file configured to target the specified registry.
If the specified package manager is yarn, it will also configure the .yarnrc.yml file.
Others available options
The generator accepts all the configurations from the Angular ng new command, see the options list.
On top of them, the following options can be provided to the initializer:
--yarn: Enforceyarnpackage manager. This option will be ignored if--package-manageris already specified.--yarn-version: specify the version of yarn to use (default:latest)--exact-o3r-version: use a pinned version for Otter packages.--preset <preset_name>: the collection of Otter modules to install. If not provided, it defaults torecommended. The full list of presets is available in @o3r/core