Skip to content

Commit

Permalink
Meta tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Aug 18, 2019
1 parent ad492ff commit 84bb41f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
"touch": "^3.1.0"
},
"devDependencies": {
"ava": "^1.4.1",
"ava": "^2.3.0",
"chalk": "^2.3.0",
"del": "^4.1.1",
"del": "^5.0.0",
"figures": "^3.0.0",
"get-stream": "^5.1.0",
"gulp": "^4.0.2",
Expand Down
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const ngAnnotate = require('gulp-ng-annotate'); // Just as an example
const SOURCE = 'src/*.js';
const DESTINATION = 'dist';

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

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

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

```js
gulp.task('marked', () =>
exports.marked = () => (
gulp.src('src/content/about.md')
.pipe(changed('dist', {transformPath: newPath => path.join(path.dirname(newPath), path.basename(newPath, '.md'), 'index.html')}))
.pipe(marked())
Expand Down

0 comments on commit 84bb41f

Please sign in to comment.