From b31886b60670f132e13b7e0f61d717e5f147b2a3 Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Sat, 4 Jun 2016 09:02:37 -0700 Subject: [PATCH] chore(gulpfile): don't watch generated dart packages --- gulpfile.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 59e7749515..daebf7cba7 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -942,8 +942,9 @@ function devGuideExamplesWatch(shredOptions, postShredAction) { // removed this version because gulp.watch has the same glob issue that dgeni has. // var excludePattern = '!' + path.join(shredOptions.examplesDir, '**/node_modules/**/*.*'); // gulp.watch([includePattern, excludePattern], {readDelay: 500}, function (event, done) { - var files = globby.sync( [includePattern], { ignore: [ '**/node_modules/**', '**/_fragments/**', - '**/dart/build/**' ]}); + var ignoreThese = [ '**/node_modules/**', '**/_fragments/**', + '**/dart/.pub/**', '**/dart/build/**', '**/dart/packages/**']; + var files = globby.sync( [includePattern], { ignore: ignoreThese }); gulp.watch([files], {readDelay: 500}, function (event, done) { gutil.log('Dev Guide example changed') gutil.log('Event type: ' + event.type); // added, changed, or deleted