Hi Previously I used the grunt
in that I want to know the available tasks use grunt --help
. But same as in gulp
use gulp --help
it doesn't show. What is the command to know the available tasks list in gulp
Each gulp task is an asynchronous JavaScript function - a function that accepts an error-first callback or returns a stream, promise, event emitter, child process, or observable (more on that later). Due to some platform limitations, synchronous tasks aren't supported, though there is a pretty nifty alternative.
Advertisements. The Watch method is used to monitor your source files. When any changes to the source file is made, the watch will run an appropriate task. You can use the 'default' task to watch for changes to HTML, CSS, and JavaScript files.
Yes I got it use the gulp --tasks
in command then it display the tasks list.
gulp --tasks-simple
This command print a plaintext list of tasks. My local project:
~ gulp --tasks-simple clean default
From gulp CLI documentation:
~ gulp --version [03:00:05] CLI version 1.2.1 [03:00:05] Local version 4.0.0-alpha.2 ~ gulp --help | grep 'tasks-simple' --tasks-simple Print a plaintext list of tasks for the loaded gulpfile. [boolean]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With