Example project of how to build a Project Griffon View Plugin
Plugins are registered via the Plugin Bridge. A brief description of how to implement the bridge in a plugin is provided in the wiki
Plugins in Project Griffon are hosted on a static server and are loaded in the UI as an iframe. We'll use Parcel to host our plugin locally.
npm install -g parcel-bundler
parcel index.html --https
Plugin development can now be done within the Project Griffon UI itself. This is done by adding a plugin configuration object to local storage. The development plugin configuration is pulled from local storage and loaded along with the existing plugins. You may configure it as follows:
localStorage.setItem('griffonPlugin', JSON.stringify([{
displayName: 'Event Counter',
src: 'https://localhost:1234/index.html'
}]))
Notes: Make sure when calling setItem on localStorage that it is done on the iframe for ui.griffon.adobe.com
You might need to load https://localhost:1234/index.html in a separate tab and accept the invalid certificate
This project is licensed under the Apache V2 License. See LICENSE for more information.