Skip to content

Commit 84bb41f

Browse files
committed
Meta tweaks
1 parent ad492ff commit 84bb41f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@
4242
"touch": "^3.1.0"
4343
},
4444
"devDependencies": {
45-
"ava": "^1.4.1",
45+
"ava": "^2.3.0",
4646
"chalk": "^2.3.0",
47-
"del": "^4.1.1",
47+
"del": "^5.0.0",
4848
"figures": "^3.0.0",
4949
"get-stream": "^5.1.0",
5050
"gulp": "^4.0.2",

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const ngAnnotate = require('gulp-ng-annotate'); // Just as an example
2424
const SOURCE = 'src/*.js';
2525
const DESTINATION = 'dist';
2626

27-
gulp.task('default', () =>
27+
exports.default = () => (
2828
gulp.src(SOURCE)
2929
.pipe(changed(DESTINATION))
3030
// `ngAnnotate` will only get the files that
@@ -68,7 +68,7 @@ Extension of the destination files.
6868
Useful if it differs from the original, like in the example below:
6969

7070
```js
71-
gulp.task('jade', () =>
71+
exports.jade = () => (
7272
gulp.src('src/**/*.jade')
7373
.pipe(changed('app', {extension: '.html'}))
7474
.pipe(jade())
@@ -91,7 +91,7 @@ Function that determines whether the source file is different from the destinati
9191
###### Example
9292

9393
```js
94-
gulp.task('jade', () =>
94+
exports.jade = () => (
9595
gulp.src('src/**/*.jade')
9696
.pipe(changed('app', {hasChanged: changed.compareContents}))
9797
.pipe(jade())
@@ -114,7 +114,7 @@ Function to transform the path to the destination file. Should return the absolu
114114
Useful if you rename your file later on, like in the below example:
115115

116116
```js
117-
gulp.task('marked', () =>
117+
exports.marked = () => (
118118
gulp.src('src/content/about.md')
119119
.pipe(changed('dist', {transformPath: newPath => path.join(path.dirname(newPath), path.basename(newPath, '.md'), 'index.html')}))
120120
.pipe(marked())

0 commit comments

Comments
 (0)