glob can be an array of strings

This commit is contained in:
Tanguy Krotoff
2015-07-06 15:43:15 +02:00
parent 224116760a
commit de2541fc1b
2 changed files with 12 additions and 1 deletions
+11
View File
@@ -17,3 +17,14 @@ gulp.task('callback', (cb) =>
.on('end', cb)
)
);
gulp.task('build', () => {
var files = [
'app/**/*.ts',
'lib/**/*.ts',
'components/**/*.ts',
];
gulp.src(files, { base: '..' })
.pipe(watch(files, { base: '..' }));
});
+1 -1
View File
@@ -21,7 +21,7 @@ declare module 'gulp-watch' {
close(): NodeJS.ReadWriteStream;
}
function watch(glob: string, options?: IOptions, callback?: Function): IWatchStream;
function watch(glob: string | Array<string>, options?: IOptions, callback?: Function): IWatchStream;
export = watch;
}