Skip to content

Commit

Permalink
Fix documents with references from #55
Browse files Browse the repository at this point in the history
The examples was incorrected.

* From `'src/*.js'` to `'src/**/*.js'`
* From `'*'` to `'**'`
  • Loading branch information
leocaseiro committed Mar 3, 2016
1 parent 317ec39 commit 922496e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions readme.md
Expand Up @@ -25,9 +25,9 @@ const filter = require('gulp-filter');

gulp.task('default', () => {
// create filter instance inside task function
const f = filter(['*', '!src/vendor']);
const f = filter(['**', '!*src/vendor']);

return gulp.src('src/*.js')
return gulp.src('src/**/*.js')
// filter a subset of the files
.pipe(f)
// run them through a plugin
Expand All @@ -45,9 +45,9 @@ const filter = require('gulp-filter');

gulp.task('default', () => {
// create filter instance inside task function
const f = filter(['*', '!src/vendor'], {restore: true});
const f = filter(['**', '!*src/vendor'], {restore: true});

return gulp.src('src/*.js')
return gulp.src('src/**/*.js')
// filter a subset of the files
.pipe(f)
// run them through a plugin
Expand Down Expand Up @@ -93,9 +93,9 @@ const uglify = require('gulp-uglify');
const filter = require('gulp-filter');

gulp.task('default', () => {
const f = filter(['*', '!src/vendor'], {restore: true, passthrough: false});
const f = filter(['**', '!*src/vendor'], {restore: true, passthrough: false});

const stream = gulp.src('src/*.js')
const stream = gulp.src('src/**/*.js')
// filter a subset of the files
.pipe(f)
// run them through a plugin
Expand Down

0 comments on commit 922496e

Please sign in to comment.