mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
gulp-watch - Extend options with vinyl-fs src options
This commit is contained in:
@@ -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: '..' }));
|
||||
});
|
||||
|
||||
|
||||
Vendored
+2
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user