@smapiot/pilet-template-ng-standalone
v1.0.9
Published
Official scaffolding template for pilets: 'ng-standalone'.
Downloads
7
Maintainers
Readme
Pilet Template - Angular Standalone ·
This is the default template for creating a new pilet using Angular with the modern standalone components.
Usage
Use the template with pilet new
or npm init pilet
:
# directly via the CLI (prefer to prefix with npx)
pilet new <app-shell> --template ng-standalone <other-options>
# via the initializer - best option (NPM v6)
npm init pilet --source <app-shell> --template ng-standalone <other-options>
# via the initializer - best option (NPM v7 and v8)
npm init pilet -- --source <app-shell> --template ng-standalone <other-options>
Variables
The following variables are available when scaffolding. They can be applied via the CLI flags, e.g.,
pilet new <app-shell> --template ng-standalone --vars.ngVersion 16
For this template we have:
- src: Sets the directory of the source files. By default it's
<root>/src
. - ngVersion: Sets the (major) version of Angular. Otherwise, would be discarded.
License
Piral is released using the MIT license. For more information see the license file.