-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
API docs missing gulp.start() #755
Comments
I think that the I don't think exposing In short: I don't think it is intended to be Gulp's public API and thus I don't think it should be documented. |
Thank you. What would be an alternative/more proper way to write this to call it from command line? example: gulp.task('foobar', function () {
//index is a separate gulp task
streamReturned = gulp.start('index');
//do more stuff with `strestreamReturned`;
}); |
I would extract the common part of the At any rate, your problem sounds like a general support question and as such would be better ask on StackOverflow. |
👍 |
Start seems like a good api to use in watch tasks. Is there a better way to do this?
If you put test as a dependency instead of invoke via |
@justinmchase |
how would you do it in gulp 4, for reference? |
@justinmchase everything in gulp 4 is just a function, you just call it |
I see, thanks. |
gulp.start() is never officially supported by gulp, it's better to use the functionality provided by gulp.watch(). See: gulpjs/gulp#755
gulp.start() is never officially supported by gulp, it's better to use the functionality provided by gulp.watch(). See: gulpjs/gulp#755
Remove use gulp.start() gulp.start() is never officially supported by gulp, it's better to use the functionality provided by gulp.watch(). See: gulpjs/gulp#755
Gulp 4.0.0 switched its task execution engine from `orchestrator` to `undertaker`. As a result, certain methods and events from Gulp 3.9.1 upon which `slush` depended disappeared: gulpjs/gulp#755 Supporting Gulp 4.0.0 is important because Node 10 broke the `graceful-fs` package upon which Gulp 3.9.1 depends. While there's a workaround (updating the `natives` package), it places a burden on users that still doesn't guarantee that Gulp 3.9.1 will remain future-proof: gulpjs/gulp#2146 (comment) gulpjs/gulp#2162 (comment) nodejs/node#19786 (comment) As it turned out, the changes required to support both versions were fairly straighforward, and should ensure that Slush remains future-proof until the next major Gulp update.
Gulp 4.0.0 switched its task execution engine from `orchestrator` to `undertaker`. As a result, certain methods and events from Gulp 3.9.1 upon which `slush` depended disappeared: gulpjs/gulp#755 Supporting Gulp 4.0.0 is important because Node 10 broke the `graceful-fs` package upon which Gulp 3.9.1 depends. While there's a workaround (updating the `natives` package), it places a burden on users that still doesn't guarantee that Gulp 3.9.1 will remain future-proof: gulpjs/gulp#2146 (comment) gulpjs/gulp#2162 (comment) nodejs/node#19786 (comment) As it turned out, the changes required to support both versions were fairly straighforward, and should ensure that Slush remains future-proof until the next major Gulp update. NOTE: The test tasks are now all asynchronous via a `done` callback, since Gulp 4 doesn't support synchronous tasks. Any synchronous slushfile task will need to be updated.
gulp.start() is never officially supported by gulp, it's better to use the functionality provided by gulp.watch(). See: gulpjs/gulp#755
@phated Is there a way to make Gulp log the standard |
Is your use case related to the watch mode or is it about simply starting the tasks programmatically? There was a recent issue for this to trigger gulp tasks programmatically that got shut down (simply call the functions, as mentioned above). The logs are handled at the CLI level. I don't think there's way to trigger them when calling the task function programmatically. I'd recommend to open a new issue if you want to request this feature instead of replying to an old issue. If this is just a support question, it's better suited for Stack Overflow. (Due to the high number of issues, this tracker is only intended for bugs) |
It's a watch use case, but when not using |
Seems like a valid use case to me but I am not sure if it is possible currently. |
Shell out or refactor your project. This is not a support forum so I'm going to lock this. |
Unless I am having a off day and missing it, it seems
gulp.start()
is missing from the api docs.The text was updated successfully, but these errors were encountered: