Package for @magnolia/cli-create-component
which holds Angular framework components and pages prototypes.
Default type: 'ts'
Use this project with @magnolia/cli-create-component
or @magnolia/cli-create-page
:
npm run mgnl -- create-component NewComponent -f "@magnolia/cli-angular-prototypes"
No installation is needed. @magnolia/cli-create-component
or @magnolia/cli-create-page
will pass all required arguments and run this project with npx
.
NOTE:
@magnolia/cli-prototype-template
,@magnolia/cli-create-component
, and@magnolia/cli-create-page
are not yet released. Please clone, build and install it manually
- Clone
@magnolia/cli-prototype-template
from git - Build
@magnolia/cli-prototype-template
:npm run build
- Pack
@magnolia/cli-prototype-template
:npm pack
- Install the
@magnolia/cli-prototype-template
in your@magnolia/cli-angular-prototypes
clone:npm i /Path/to/magnolia-cli-prototype-template-1.0.0.tgz
- Build
@magnolia/cli-angular-prototypes
:npm run build
- In a project:
npm run mgnl -- create-component NewComponent -f "/Path/to/cli-angular-prototypes"
- _default: variant contains a Angular component with 'text' property only. Default LM component. Available types: 'js', 'ts'
- _default-directory_based: variant is same as _default, but creates folder with component name and exports index file. Available types: 'js', 'ts'
- ha-angular: variant contains a component compatible with Headless Accelerator Angular template. Available types: 'ts'
- _default: variant contains a Angular page with 'title' property only. Available types: 'js', 'ts'
- _default-directory_based: variant is same as _default, but creates folder with page name and exports index file. Available types: 'js', 'ts'
- ha-angular: variant contains a page compatible with Headless Accelerator Angular template. Available types: 'ts'