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; }