forked from 2fd/graphdoc
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
taskA task to be doneA task to be done
Description
The plugin system that is currently in place is a bit too intimate with the current setup of the code base. I'd like to break things out, turn into an event based plugin system and their own node modules (once #18 is done).
For example, we can listen to events like:
this.listen('event:name', this.doSomething);
I like the colon delimited event name schema as it's self documenting. We can even have before and after to give some sort of order (before could cancel everything too):
this.listen('before:event:name', this.doSomethingBefore);
this.listen('after:event:name', this.doSomethingAfter);
And of course the plugins can register themselves to a manager. We can also either have a base plugin class or since typescript is being used can use decorators (tho some people hate decorators and wouldn't want to alienate them so support no decorators like done above or some other api).
Metadata
Metadata
Assignees
Labels
taskA task to be doneA task to be done