Skip to content

Commit

Permalink
Fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed May 20, 2019
1 parent f1115b6 commit 17b6d2e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module.exports.outdated = async () => {
}

module.exports.sort = () =>
src('**/*.txt')
src('*.txt')
.pipe(stream(({ path }) => `sort ${path}`))
.pipe(dest('sorted'))
```
Expand Down
6 changes: 3 additions & 3 deletions docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const { src, dest } = require('gulp')
const { stream } = require('gulp-execa')

module.exports.sort = () =>
src('**/*.txt')
src('*.txt')
.pipe(stream(({ path }) => `sort ${path}`))
.pipe(dest('sorted'))
```
Expand Down Expand Up @@ -128,7 +128,7 @@ const { stream } = require('gulp-execa')
const through = require('through2')

module.exports.default = () =>
src('**/*')
src('*.js')
// Prints the number of lines of each file
.pipe(stream(({ path }) => `wc -l ${path}`, { result: 'save' }))
.pipe(
Expand All @@ -152,7 +152,7 @@ const { stream } = require('gulp-execa')
const through = require('through2')

module.exports.default = () =>
src('**/*')
src('*.js')
// Prints the number of lines of each file, including `stderr`
.pipe(
stream(({ path }) => `wc -l ${path}`, { result: 'replace', from: 'all' }),
Expand Down
2 changes: 1 addition & 1 deletion examples/from.gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const { stream } = require('gulp-execa')
const through = require('through2')

module.exports.default = () =>
src('**/*')
src('*.js')
// Prints the number of lines of each file, including `stderr`
.pipe(
stream(({ path }) => `wc -l ${path}`, { result: 'replace', from: 'all' }),
Expand Down
2 changes: 1 addition & 1 deletion examples/max_concurrency.gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const { src } = require('gulp')
const { stream } = require('gulp-execa')

module.exports.default = () =>
src('**/*').pipe(
src('*.js').pipe(
// Only one command will be fired at once
stream(({ path }) => `echo ${path}`, { echo: true, maxConcurrency: 1 }),
)
2 changes: 1 addition & 1 deletion examples/result.gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const { stream } = require('gulp-execa')
const through = require('through2')

module.exports.default = () =>
src('**/*')
src('*.js')
// Prints the number of lines of each file
.pipe(stream(({ path }) => `wc -l ${path}`, { result: 'save' }))
.pipe(
Expand Down
2 changes: 1 addition & 1 deletion examples/stream.gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ const { src, dest } = require('gulp')
const { stream } = require('gulp-execa')

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

0 comments on commit 17b6d2e

Please sign in to comment.