From de2541fc1b9c622010f2165c7782c41c0536b7f1 Mon Sep 17 00:00:00 2001 From: Tanguy Krotoff Date: Mon, 6 Jul 2015 15:43:15 +0200 Subject: [PATCH] glob can be an array of strings --- gulp-watch/gulp-watch-tests.ts | 11 +++++++++++ gulp-watch/gulp-watch.d.ts | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/gulp-watch/gulp-watch-tests.ts b/gulp-watch/gulp-watch-tests.ts index 5e158a045..9d9303ac2 100644 --- a/gulp-watch/gulp-watch-tests.ts +++ b/gulp-watch/gulp-watch-tests.ts @@ -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: '..' })); +}); diff --git a/gulp-watch/gulp-watch.d.ts b/gulp-watch/gulp-watch.d.ts index b3a16bbdd..35fb7de95 100644 --- a/gulp-watch/gulp-watch.d.ts +++ b/gulp-watch/gulp-watch.d.ts @@ -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, options?: IOptions, callback?: Function): IWatchStream; export = watch; }