chore(gulpfile): don't watch the dart build folder (#1344)
This commit is contained in:
parent
ef66e38e54
commit
55bec4a097
|
@ -808,7 +808,8 @@ function devGuideExamplesWatch(shredOptions, postShredAction) {
|
||||||
// removed this version because gulp.watch has the same glob issue that dgeni has.
|
// removed this version because gulp.watch has the same glob issue that dgeni has.
|
||||||
// var excludePattern = '!' + path.join(shredOptions.examplesDir, '**/node_modules/**/*.*');
|
// var excludePattern = '!' + path.join(shredOptions.examplesDir, '**/node_modules/**/*.*');
|
||||||
// gulp.watch([includePattern, excludePattern], {readDelay: 500}, function (event, done) {
|
// gulp.watch([includePattern, excludePattern], {readDelay: 500}, function (event, done) {
|
||||||
var files = globby.sync( [includePattern], { ignore: [ '**/node_modules/**', '**/_fragments/**']});
|
var files = globby.sync( [includePattern], { ignore: [ '**/node_modules/**', '**/_fragments/**',
|
||||||
|
'**/dart/build/**' ]});
|
||||||
gulp.watch([files], {readDelay: 500}, function (event, done) {
|
gulp.watch([files], {readDelay: 500}, function (event, done) {
|
||||||
gutil.log('Dev Guide example changed')
|
gutil.log('Dev Guide example changed')
|
||||||
gutil.log('Event type: ' + event.type); // added, changed, or deleted
|
gutil.log('Event type: ' + event.type); // added, changed, or deleted
|
||||||
|
|
Loading…
Reference in New Issue