From 1cc7d17eae4ef2d570b62d3ac5c4e42b43509b5a Mon Sep 17 00:00:00 2001 From: Louis De Bevere Date: Fri, 16 Jun 2017 23:11:13 +0200 Subject: [PATCH] gulp-watch - Extend options with vinyl-fs src options --- types/gulp-watch/gulp-watch-tests.ts | 12 ++++++++++++ types/gulp-watch/index.d.ts | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/types/gulp-watch/gulp-watch-tests.ts b/types/gulp-watch/gulp-watch-tests.ts index 56a676bc65..0260a24bb6 100644 --- a/types/gulp-watch/gulp-watch-tests.ts +++ b/types/gulp-watch/gulp-watch-tests.ts @@ -25,3 +25,15 @@ gulp.task('build', () => { gulp.src(files, { base: '..' }) .pipe(watch(files, { base: '..' })); }); + +gulp.task('build', () => { + var files = [ + 'app/**/*.ts', + 'lib/**/*.ts', + 'components/**/*.ts', + ]; + + gulp.src(files, { cwd: '..' }) + .pipe(watch(files, { base: '..' })); +}); + diff --git a/types/gulp-watch/index.d.ts b/types/gulp-watch/index.d.ts index de56633491..f9855f09a6 100644 --- a/types/gulp-watch/index.d.ts +++ b/types/gulp-watch/index.d.ts @@ -5,8 +5,9 @@ /// +import {SrcOptions} from "vinyl-fs"; -interface IOptions { +interface IOptions extends SrcOptions { ignoreInitial?: boolean; events?: Array; base?: string;