Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a work in progress; I'd want to add documentation and tests but I wanted to toss the basic idea out there to see if there's heavy pushback first.
This provides a way for a gulpfile or a gulp plugin to specify that it requires special Node.js flags (like
--harmony_proxies
). Addinggulp.requireNodeFlags('--harmony_proxies', ...)
to the top of a gulpfile is all that's required. It reuses the same respawn code that gets used currently when using Node.js flags as arguments to gulp, so instead of getting an error message if you forget to invoke gulp with the right things, gulp just quietly restarts with the missing flags added.I'm torn on whether
requireNodeFlags
should go here or ingulp-utils
; the latter feels slightly more correct if I expect plugins and not just gulpfiles to use this, but then I'd have two PRs to wrangle so I figured I'd get confirmation on that from you all first.Feedback please?