This project shows a simple use case for the Uniplugger library
Just clone or downlod the project.
Then navigate to the folder, and npm install
Navigate to the folder, then npm run start
This will build and launch the example application, and you will see the output from the two plugins.
At a minimum, there are generally 3 parts to a plugin arcitecture:
- The main application. This is your main application that will use the plugins. The plugins will be discovered and loaded at run time when specified.
- The plugin. This is the piece of functionality that is abstracted out of the application for use.
- The contract. Your application needs to know what your plugin is offering, and your plugin needs to agree to provide the specifies functionality.
Take a look at the uniplugger project if you want to dive a little deeper.
Thoughts, comments, bugs & feature requestes are welcome :)