gulp-watch - Extend options with vinyl-fs src options

This commit is contained in:
Louis De Bevere
2017-06-16 23:11:13 +02:00
parent 323a00ed08
commit 1cc7d17eae
2 changed files with 14 additions and 1 deletions
+12
View File
@@ -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: '..' }));
});
+2 -1
View File
@@ -5,8 +5,9 @@
/// <reference types="node" />
import {SrcOptions} from "vinyl-fs";
interface IOptions {
interface IOptions extends SrcOptions {
ignoreInitial?: boolean;
events?: Array<string>;
base?: string;