Licence
ISC
Version
1.0.3
Deps
5
Size
117 kB
Vulns
0
Weekly
0
Plugin Development Template
Template for developing State Machine Snacks plugins.
| Script | Description |
|---|---|
npm run dev |
Start the dev server. |
npm run build |
Build project. |
npm run serve |
Serve a static copy of the build. |
export default (options = {}) => ({
config : (config = false) => {
// Modify state machine config.
// Utilize configEditor when possible.
// Must return object to be new config.
},
service : (config = false, service = false) => {
// Access the service as well as the config used to generate the service.
// Doesn't need to return anything.
},
});
// You can export helper functions for the users of your plugin.
const exampleHelper = () => {
};
export {
exampleHelper,
};