Zengine Plugin Generator for Yeoman
Yeoman Generators for Zengine Plugins
Install
If you don't have yeoman.io installed
npm install -g yo
Then install the generator
# New version
npm install -g generator-zn-plugin
# Legacy version for Maya
npm install -g generator-zn-plugin@legacy
You can then keep it up to date with:
npm upgrade -g [generator-zn-plugin|generator-zn-plugin]
Which version should I use?
- the 2.x branch is only compatible with mayan and supports frontend config and other helper modules
- the 1.x branch is compatible with both maya and mayan (caveat being that you must manually update your maya-build scripts)
Usage
Creating a full plugin
cd Projects
yo zn-plugin zn-plugin-demo
cd zn-plugin-demo
npm install
Adding a backend service for an existing plugin
cd zn-plugin-demo
yo zn-plugin:backend my-test-api
cd my-test-api
npm install
Adding a new frontend plugin for an existing plugin
cd zn-plugin-demo
yo zn-plugin:frontend my-test-ui
cd my-test-ui
npm install
Contribute
See the contributing.