Skip to content
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

How can I actually control the order of actions during a phase? #791

Open
oliversalzburg opened this issue Jun 3, 2015 · 2 comments
Open
Assignees
Labels

Comments

@oliversalzburg
Copy link
Member

I want to run gulp before I run my tests. My first idea was to simply run a script during the prepare phase. But that script is run before bower and node dependencies are restored, so I'm missing those.

I could just run my script in the test phase, but that doesn't seem like the right place.

I assumed that I could control this behavior by re-ordering the plugins for the branch, but that has no effect on the order of these actions.

I can see how some people would like to run a certain action before cached modules are restored and how others would like to do that after they're restored. So, is there a way?

@oliversalzburg
Copy link
Member Author

And I think I just got my answer.

When you're using strider.json to control your strider config, the plugins you configure in there are pushed to the top of the plugin stack, so they always run first.

@oliversalzburg
Copy link
Member Author

And I just got a tiny bit smarter :P Not using merge_plugins in strider.json will obviously, not merge the configurations.

So you just have to configure all plugins in strider.json and then only the order in strider.json matters.

Now, what is actually the desired behavior here? Should people override their web config with strider.json? Should one extend the other? If so, which one's the root?

I also wrote some code at https://github.com/oliversalzburg/strider/commit/b2a9f5d3dc6bee39c14185163952490d0e72d458, but I'm no longer sure what the correct approach is. Please advise.

Relates to #789

@knownasilya knownasilya self-assigned this Jun 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants