.TH "GULP" "" "April 2020" "" "" .SH "NAME" \fBgulp\fR .SH gulp CLI docs .SS Flags .P gulp has very few flags to know about\. All other flags are for tasks to use if needed\. .RS 0 .IP \(bu 2 \fB\-v\fP or \fB\-\-version\fP will display the global and local gulp versions .IP \(bu 2 \fB\-\-require \fP will require a module before running the gulpfile\. This is useful for transpilers but also has other applications\. You can use multiple \fB\-\-require\fP flags .IP \(bu 2 \fB\-\-gulpfile \fP will manually set path of gulpfile\. Useful if you have multiple gulpfiles\. This will set the CWD to the gulpfile directory as well .IP \(bu 2 \fB\-\-cwd \fP will manually set the CWD\. The search for the gulpfile, as well as the relativity of all requires will be from here .IP \(bu 2 \fB\-T\fP or \fB\-\-tasks\fP will display the task dependency tree for the loaded gulpfile\. It will include the task names and their description \fI\|\./API\.md#fndescription\fR\|\. .IP \(bu 2 \fB\-\-tasks\-simple\fP will display a plaintext list of tasks for the loaded gulpfile .IP \(bu 2 \fB\-\-verify\fP will verify plugins referenced in project's package\.json against the plugins blacklist .IP \(bu 2 \fB\-\-color\fP will force gulp and gulp plugins to display colors even when no color support is detected .IP \(bu 2 \fB\-\-no\-color\fP will force gulp and gulp plugins to not display colors even when color support is detected .IP \(bu 2 \fB\-\-silent\fP will disable all gulp logging .RE .P The CLI adds process\.env\.INIT_CWD which is the original cwd it was launched from\. .SS Task specific flags .P Refer to this StackOverflow \fIhttps://stackoverflow\.com/questions/23023650/is\-it\-possible\-to\-pass\-a\-flag\-to\-gulp\-to\-have\-it\-run\-tasks\-in\-different\-ways\fR link for how to add task specific flags .SS Tasks .P Tasks can be executed by running \fBgulp \.\.\.\fP\|\. .P If more than one task is listed, Gulp will execute all of them concurrently, that is, as if they had all been listed as dependencies of a single task\. .P Gulp does not serialize tasks listed on the command line\. From using other comparable tools users may expect to execute something like \fBgulp clean build\fP, with tasks named \fBclean\fP and \fBbuild\fP\|\. This will not produce the intended result, as the two tasks will be executed concurrently\. .P Just running \fBgulp\fP will execute the task \fBdefault\fP\|\. If there is no \fBdefault\fP task, gulp will error\. .SS Compilers .P You can find a list of supported languages at interpret \fIhttps://github\.com/tkellen/node\-interpret#jsvariants\fR\|\. If you would like to add support for a new language send pull request/open issues there\. .SS Examples .SS Example gulpfile .P .RS 2 .nf gulp\.task('one', function(done) { // do stuff done(); }); gulp\.task('two', function(done) { // do stuff done(); }); gulp\.task('three', three); function three(done) { done(); } three\.description = "This is the description of task three"; gulp\.task('four', gulp\.series('one', 'two')); gulp\.task('five', gulp\.series('four', gulp\.parallel('three', function(done) { // do more stuff done(); }) ) ); .fi .RE .SS \fB\-T\fP or \fB\-\-tasks\fP .P Command: \fBgulp \-T\fP or \fBgulp \-\-tasks\fP .P Output: .P .RS 2 .nf [20:58:55] Tasks for ~\\exampleProject\\gulpfile\.js [20:58:55] ├── one [20:58:55] ├── two [20:58:55] ├── three This is the description of task three [20:58:55] ├─┬ four [20:58:55] │ └─┬ [20:58:55] │ ├── one [20:58:55] │ └── two [20:58:55] ├─┬ five [20:58:55] │ └─┬ [20:58:55] │ ├─┬ four [20:58:55] │ │ └─┬ [20:58:55] │ │ ├── one [20:58:55] │ │ └── two [20:58:55] │ └─┬ [20:58:55] │ ├── three [20:58:55] │ └── .fi .RE .SS \fB\-\-tasks\-simple\fP .P Command: \fBgulp \-\-tasks\-simple\fP .P Output: .P .RS 2 .nf one two three four five .fi .RE