Skip to content

Commit 915f638

Browse files
Kyle Cordesphated
authored andcommitted
Docs: Clarify CLI semantics when listing more than one task (#105)
1 parent ec40612 commit 915f638

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

docs/CLI.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
11
### Usage
22

3-
gulp [flags] tasks
3+
`gulp [flags] <task> <task>...`
44

55
### Tasks
66

7-
Tasks can be executed by running `gulp <task> <othertask>`. Just running `gulp` will execute the task you registered called `default`. If there is no `default` task, gulp will error.
7+
The task(s) listed will be executed.
8+
If more than one task is listed, Gulp will execute all of them
9+
concurrently, that is, as if they had all been listed as dependencies of
10+
a single task.
11+
12+
Gulp does not serialize tasks listed on the command line. From using
13+
other comparable tools users may expect to execute something like
14+
`gulp clean build`, with tasks named `clean` and `build`. This will not
15+
produce the intended result, as the two tasks will be executed
16+
concurrently.
17+
18+
Just running `gulp` will execute the task `default`. If there is no
19+
`default` task, gulp will error.
820

921
### Compilers
1022

0 commit comments

Comments
 (0)