e0ipso / plugnplay

🤖 Plugin system for reusable code in node.js
GNU General Public License v2.0
67 stars 13 forks source link

Instance dependencies #85

Closed Revadike closed 3 years ago

Revadike commented 3 years ago

I'd like Plugin2 to use an instance of Plugin1. It cannot function or be instantiated without Plugin1. How does one do this?

e0ipso commented 3 years ago

Maybe this example is helpful: https://github.com/js-widgets/js-widgets/blob/master/packages/js-widgets-ingestion-gh-releases/src/plugnplay.yml

Revadike commented 3 years ago

Not helpful. What if Plugin3 needs the same instance of Plugin1, as Plugin2 needs?