In order to create a MotorCortex-Plugin we recommend using this boilerplate.
Clone this repo using the command
git clone https://github.com/kissmybutton/motorcortex-plugin-boilerplate.git
Install all the required npm modules
npm i
Create your plugin in the src folder. There you will find all the files you need on order to create a plugin with one exported incident.
In order to test your plugin in the demo folder we have a demo of the plugin. To run in simply type
npm start
When you are happy with your plugin execute the followig commands
npm run build
npm run build:demo
git add .
npm run commit
git push origin master
npm publish