Created by: rhendric
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
). Adding gulp.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 in gulp-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?