@o3r/create
v11.5.4
Published
Create a new Otter based application
Downloads
4,572
Readme
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]
[!WARNING]
yarn create
is not supported.
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]
[!TIP] The option
--package-manager=yarn
can be simplified to--yarn
.
[!NOTE] At the moment, the
package-manager
option only supportsyarn
andnpm
.
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
: Enforceyarn
package manager. This option will be ignored if--package-manager
is already specified.--yarn-version
: specify the version of yarn to use (default:latest
)--exact-o3r-version
: use a pinned version for Otter packages.