You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/CLI.md
+72Lines changed: 72 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -41,3 +41,75 @@ Just running `gulp` will execute the task `default`. If there is no
41
41
### Compilers
42
42
43
43
You can find a list of supported languages at [interpret](https://github.com/tkellen/node-interpret#jsvariants). If you would like to add support for a new language send pull request/open issues there.
44
+
45
+
### Examples
46
+
47
+
#### Example gulpfile
48
+
49
+
```js
50
+
gulp.task('one', function(done) {
51
+
// do stuff
52
+
done();
53
+
});
54
+
55
+
gulp.task('two', function(done) {
56
+
// do stuff
57
+
done();
58
+
});
59
+
60
+
gulp.task('three', three);
61
+
62
+
functionthree(done) {
63
+
done();
64
+
}
65
+
three.description="This is the description of task three";
66
+
67
+
gulp.task('four', gulp.series('one', 'two'));
68
+
69
+
gulp.task('five',
70
+
gulp.series('four',
71
+
gulp.parallel('three', function(done) {
72
+
// do more stuff
73
+
done();
74
+
})
75
+
)
76
+
);
77
+
```
78
+
79
+
### `-T` or `--tasks`
80
+
81
+
Command: `gulp -T` or `gulp --tasks`
82
+
83
+
Output:
84
+
```shell
85
+
[20:58:55] Tasks for~\exampleProject\gulpfile.js
86
+
[20:58:55] ├── one
87
+
[20:58:55] ├── two
88
+
[20:58:55] ├── three This is the description of task three
0 commit comments