-
Notifications
You must be signed in to change notification settings - Fork 660
Gulp tasks should be named functions wrapped and without runSequence #289
Comments
👍 |
You're correct, it's kind of a hack. But actually, I think the version we have at the moment is just a little more readable and understandable to most of our users. I haven't followed it all but I think gulpjs/gulp#355 makes this all much easier, so I'd say we should just postpone fixing this issue till Gulp 4 comes out (normally soon). We'll need to do many updates then anyways. |
Just to add.... it's been a few months but last I checked |
👍 This echoes my sentiments too. We could keep this issue open until Gulp 4 is properly out and then tackle it correctly. |
Extract non-specific tasks to fns to be more inline with "the gulp way✨" Fixes #289
Extract non-specific tasks to fns to be more inline with "the gulp way✨" Fixes #289
@dman777 I took an initial pass at this by pulling out non specific logic into functions. |
Extract non-specific tasks to fns to be more inline with "the gulp way✨" Fixes #289
Extract non-specific tasks to fns to be more inline with "the gulp way✨" Fixes #289
Extract non-specific tasks to fns to be more inline with "the gulp way✨" Fixes #289
Extract non-specific tasks to fns to be more inline with "the gulp way✨" Fixes Polymer#289
Extract non-specific tasks to fns to be more inline with "the gulp way✨" Fixes Polymer#289
@samccone Sorry about the late response. I would but I'm backed up on other projects |
No worries. This is OSS so any help is appreciated |
The gulp tasks have been written against gulp convention. The true intention of the gulp design is to write regular Javascript functions, and only make the task for calling them. With this format, you would never need
runSequence
which uses(or used to use)gulp.start()
.If you need sync, use a promise library like blue bird performance promise library. I believe Gulp 4.0 has it's own promise's but I prefer performance bluebird.
This is from the authors of Gulp. Sources:
gulpjs/gulp#755
gulpjs/gulp#458
example on proper convention:
The text was updated successfully, but these errors were encountered: