Skip to content

Commit 61e4054

Browse files
committed
Docs: Add example usage for custom metadata
1 parent 02ff140 commit 61e4054

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,20 @@ build.flags = {
3636
};
3737
```
3838

39+
Example Usage:
40+
41+
```js
42+
function build() { ... }
43+
build.description = 'Build entire project.';
44+
build.flags = {
45+
'--prod': 'Builds in production mode (minification, etc).'
46+
};
47+
// gulp 3.x
48+
gulp.task('build', build);
49+
// gulp 4.x
50+
gulp.task(build);
51+
```
52+
3953
## Tasks
4054

4155
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.

0 commit comments

Comments
 (0)