-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add extension ordering #242
Conversation
This reverts commit 8a96381.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for putting this together. I like the overall approach.
I have a few requests with respect to the logic, and think that updating the behavior with respect to USER as in #243 is a cleaner approach to special casing USER. Where the extension still does things but setting USER is special.
Are you suggesting changing the special casing of |
Right it may be that your plugin wants to go before or after the user plugin snippet. But you can declare that for your plugin. What I've done in #243 is separate the User plugin snippet from the |
I'm on the same page now. I think the approach is cleaner in #243 and gives more flexibility. It's up to the extension creator to determine if the I think I've made all the changes you've requested, but feel free to raise an issue if you see one. We might want to consider updating any of the extensions included in this repo with the required method if any extensions do require others to function properly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for iterating on this with me and including test coverage
Closes #37
Adds the ability to specify required and preceding extensions for any given extension. The 'user' extension is a special case that will always be loaded last unless an extension specifically requests the 'user' extension to be loaded before.
I pulled together snippets from the groot_rocker repo created by @stonier and made a few modifications of my own.