@@ -24,7 +24,7 @@ const ngAnnotate = require('gulp-ng-annotate'); // Just as an example
24
24
const SOURCE = ' src/*.js' ;
25
25
const DESTINATION = ' dist' ;
26
26
27
- gulp . task ( ' default' , () =>
27
+ exports . default = () => (
28
28
gulp .src (SOURCE )
29
29
.pipe (changed (DESTINATION ))
30
30
// `ngAnnotate` will only get the files that
@@ -68,7 +68,7 @@ Extension of the destination files.
68
68
Useful if it differs from the original, like in the example below:
69
69
70
70
``` js
71
- gulp . task ( ' jade' , () =>
71
+ exports . jade = () => (
72
72
gulp .src (' src/**/*.jade' )
73
73
.pipe (changed (' app' , {extension: ' .html' }))
74
74
.pipe (jade ())
@@ -91,7 +91,7 @@ Function that determines whether the source file is different from the destinati
91
91
###### Example
92
92
93
93
``` js
94
- gulp . task ( ' jade' , () =>
94
+ exports . jade = () => (
95
95
gulp .src (' src/**/*.jade' )
96
96
.pipe (changed (' app' , {hasChanged: changed .compareContents }))
97
97
.pipe (jade ())
@@ -114,7 +114,7 @@ Function to transform the path to the destination file. Should return the absolu
114
114
Useful if you rename your file later on, like in the below example:
115
115
116
116
``` js
117
- gulp . task ( ' marked' , () =>
117
+ exports . marked = () => (
118
118
gulp .src (' src/content/about.md' )
119
119
.pipe (changed (' dist' , {transformPath : newPath => path .join (path .dirname (newPath), path .basename (newPath, ' .md' ), ' index.html' )}))
120
120
.pipe (marked ())
0 commit comments