Starter kit to create a Materia Addon.
- Minimal server
- Default addon view (Angular v9 + Angular Material)
- Custom setup dialog
- Build system (@angular/cli + ng-packagr + TypeScript + Sass)
In your Materia application, run yarn add @materia/addon-boilerplate
Restart Materia Designer
Clone this repository:
git clone [email protected]:thyb/materia-addon-boilerplate.git
cd materia-addon-boilerplate
Then install dependencies and build:
yarn
yarn build
To test your addon locally before publishing it to NPM, use npm link
:
cd dist && npm link
and in your materia application
npm link @materia/addon-boilerplate
then add "@materia/addon-boilerplate": "^1.1.0"
in the dependencies of the package.json - it will let Materia knows of the existance of the addon.