A starter plugin for creating MotorCortex plugins.
It includes:
- rollup configuration & ready to use build tools
- a pre-configured webpack for the needs of the demo
- pre-configured eslint and babel
- and a set of ready to work on, Incidents:
- Effect, for developing a custom Effect
- HTMLClip, for developing a pre-configured HTML Clip with HTML, CSS and Incidents
- Combo, for developing custom, pre-configured Combos
- Clip, for developing custom browser Clips, such as canvas
These Incidents are the starting point for developing a plugin. They extend the right Classes from MotorCortex SDK and they have blank implementations of all the methods that should or can be overwritten, with comments.
Along with the comments you can always refer to MotorCortex documentation for detailed information on how to implement a plugin.
Once you've decided what exactly your pluign is going to do and once we've decided on the type of Incident(s) you need to implement, you can start directly from the basic/blank implementations and either work on them directly or just copy them. Change the names of the files, name your Classes however you want but always make sure you import and expose everything properly on your index.js file.
Also, it's imortant to change your package.json file so you can name your pluign, provide details and more.
npm run build
: builds the dist of your pluign along with the demonpm run build:demo
: builds just the demonpm start
: builds everything and starts the demonpm start:demo
: just starts the demo