Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed May 20, 2019
1 parent 82f3ba6 commit 750841b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,10 @@ module.exports.outdated = async function() {
await exec('npm outdated')
}

module.exports.sort = function() {
return src('**/*.txt')
module.exports.sort = () =>
src('**/*.txt')
.pipe(stream(({ path }) => `sort ${path}`))
.pipe(dest('sorted'))
}
```

# Install
Expand Down Expand Up @@ -95,9 +94,10 @@ can still opt-in to using them with the
[`shell` option](https://github.com/ehmicky/gulp-execa/blob/master/docs/API.md#shell).

```js
const { series } = require('gulp')
const { writeFileStream } = require('fs')

const { series } = require('gulp')

// Wrong
module.exports.check = task('npm audit && npm outdated')

Expand Down
5 changes: 2 additions & 3 deletions docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,10 @@ Returns a stream that executes a `command` on each input file.
const { stream } = require('gulp-execa')
const { src, dest } = require('gulp')

module.exports.sort = function() {
return src('**/*.txt')
module.exports.sort = () =>
src('**/*.txt')
.pipe(stream(({ path }) => `sort ${path}`))
.pipe(dest('sorted'))
}
```

Each file in the stream will spawn a separate process. This can consume lots of
Expand Down

0 comments on commit 750841b

Please sign in to comment.