This package is used to generate a Materia Addon automatically using Angular schematics.
To use it you will need to:
- install
@angular-devkit/schematics-cli
globally and use theschematics
command line tool, - install
@materia/schematics-addons
globally.
Run following command with npm:
npm install -g @angular-devkit/schematics-cli @materia/schematics-addons
or using yarn:
yarn global add @angular-devkit/schematics-cli @materia/schematics-addons
Run this comand in the folder where you want to generate your new addon folder:
schematics @materia/schematics-addons:new --name=ADDON_NAME --packageName=PACKAGE_NAME --prefix=COMPONENT_PREFIX
All params are optional:
- name: Name of your addon (default: 'addon-boilerplate'),
- prefix: Prefix used in angular for the client side part (default: 'materia'),
- packageName: Name used in package.json if different from name.