-
Notifications
You must be signed in to change notification settings - Fork 9
Home
The MWDK is designed to allow widgets to be developed independent of the Materia platform, with live reloading and a handful of additional features to facilitate faster development. Additional documentation related to Materia itself is available on the Materia repo.
MWDK must be listed under the dependencies
section of your widget's package.json
:
"dependencies": {
"materia-widget-development-kit": "3.0.0"
}
Note that this is a required dependency of all Materia widgets.
While both may work, we do not maintain a NPM lockfile (package-lock.json or
npm-shrinkwrap.json`) in the repo. Therefore, we recommend using yarn.
Run yarn start
in the widget's root directory. The widget will be available at localhost:8118
.
Use the Download Package option on either the Player or Creator page to either download a compiled .wigt
file locally (it's just a .zip file, but renamed) or install directly to your local instance of Materia. This requires a currently running local instance of Materia in Docker.
Visit the Developing Materia Widgets section of our docs site for comprehensive documentation related to authoring a widget.
Visit our page detailing the changes required to implement MWDK v3.x in your widget.