Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the available tasks list in gulp

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

like image 705
vamsikrishnamannem Avatar asked Jun 11 '15 09:06

vamsikrishnamannem


People also ask

How do you define gulp tasks?

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.

What is gulp watch command?

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.


2 Answers

Yes I got it use the gulp --tasks in command then it display the tasks list.

like image 137
vamsikrishnamannem Avatar answered Oct 20 '22 05:10

vamsikrishnamannem


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] 
like image 40
Vladimir Korshunov Avatar answered Oct 20 '22 06:10

Vladimir Korshunov