-
Notifications
You must be signed in to change notification settings - Fork 52
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
options by task #75
base: master
Are you sure you want to change the base?
options by task #75
Conversation
i've spent some time trying to figure out why this is failing for node 0.8.x. works fine on my box but would like to get to the bottom of it. |
@tschaub I'm considering forking grunt-newer due to lack of activity solving cases where file filtering isn't wanted or isn't directly possible. I'd rather work within the existing grunt-newer project but there's been little in the way of feedback. |
@mattkime I appreciate your effort to try to make this more usable. However, I don't think this change makes a significant improvement. There are now two ways to provide an In addition, supporting options named like other tasks has two potential issues. First, any option added in the future (regular options for the newer: {
options: {
foo: {
override: overrideForFoo
}
}
} And in the future, if the The second issue is that people might wrongly assume that they could provide other per-task options in this same way. Why is the I know that this is a bit pedantic (especially since there are only two options for the task). But I think a general fault of Grunt is that it provides too many ways to do the same thing (e.g. specify So, I think it would be great to make it easier to make newer: {
options: {
override: overrides({
less: overrides.less(),
someOtherTaskName: overrides.someOtherOverride(whateverConfig)
})
}
} And the |
@tschaub i'm a bit confused about how to apply the overrides option to the simplest of use cases - if one file changes, lets include all files. (yeah, a bit off topic) i agree that grunt has its weaknesses, but I've yet to find an alternative that makes switching worthwhile. (gulp does have its virtues, not sure if they're sufficient to switch) i see your point about task vs newer option namespace collisions. after chewing on this for a while i think it might be better to throw caution to the wind and put the newer task config directly inside the task or target.
yes, yes, there may be collisions. but this is how i want to express what needs to happen. perhaps '_newer' instead of 'newer'? or make it configurable via newer task options? restating the problem - how can we supply config info for a task that modifies other tasks? and can we do it in such a way that allows for additional options? |
license update / pull from grunt-newr
Conflicts: package.json
No description provided.