-
Notifications
You must be signed in to change notification settings - Fork 22
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
Use specific targets rather than the full task #4
Comments
It may be possible to access tasks on demand by modifying the gulp object(so these targets would be requested from grunt on demand), or like you said it may be possible to find these targets. I do know that some Grunt API browsing will be necessary. |
I'm finally getting around to working on a pull request for this issue (https://github.com/davidtheclark/gulp-grunt). I have the functionality working with a simple use case: gulp.task('style', function() {
gulp.run('grunt-sass');
});
gulp.task('styleFirst', function() {
gulp.run('grunt-sass:first');
});
gulp.task('styleSecond', function() {
gulp.run('grunt-sass:second');
}); All three of those work, the first running both However, I'm not very experienced as a Node programmer and was wondering if you could help me with the testing. When I run
... and I'm not really sure what to do about that. Any advice? So although I have a use-case working I haven't yet been able to test that this new functionality didn't break your other tests, and haven't yet added any new tests for it. Would you like me to submit the pull request in this current state, or do you have a suggestion for what I should do next? Thanks! |
Already merged, and I think I fixed the issue. Any chance you develop on windows? |
Great! No, I don't develop on Windows. |
Would you mind pulling it down and running the test suite? I am still unsure if it works on any machine except mine. |
If everything works, you should add docs to the README.md and make a pull request. I'm not sure exactly how this feature works. |
Unfortunately, the test suite doesn't seem to work on my machine still. But in the meantime I submitted a PR in which I added a couple of lines to the Readme illustrating how I envisioned this functionality working. Please let me know if I need to clarify, or if it is not working for you the way it is supposed to. |
It's strange that it's not working on your machine. Travis handles it just fine. |
If Travis and you handle it and nobody else complains, may be a problem with my own installation and not a problem with the plugin. |
I'm going to go ahead and close this because I have not gotten complaints about specific task targets. |
It doesn't look to me like there's a way to use a specific Grunt target rather than the full task -- the equivalent of running
grunt assemble:dev
rather than justgrunt assemble
(which runs all theassemble
targets).I would like to be able to do this. What do you think?
At first I was having a hard time finding a way via the Grunt API to get what would be needed -- but then I found that the
grunt.config.get()
method could be used to get the configuration object, whose keys would be target names. So that's one way, unless you know of something better.The text was updated successfully, but these errors were encountered: