Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit e6643b0

Browse files
chalinkwalrath
authored andcommitted
chore(gulpfile): don't watch generated dart packages (#1601)
1 parent 7db6684 commit e6643b0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

gulpfile.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -958,8 +958,9 @@ function devGuideExamplesWatch(shredOptions, postShredAction) {
958958
// removed this version because gulp.watch has the same glob issue that dgeni has.
959959
// var excludePattern = '!' + path.join(shredOptions.examplesDir, '**/node_modules/**/*.*');
960960
// gulp.watch([includePattern, excludePattern], {readDelay: 500}, function (event, done) {
961-
var files = globby.sync( [includePattern], { ignore: [ '**/node_modules/**', '**/_fragments/**',
962-
'**/dart/build/**' ]});
961+
var ignoreThese = [ '**/node_modules/**', '**/_fragments/**',
962+
'**/dart/.pub/**', '**/dart/build/**', '**/dart/packages/**'];
963+
var files = globby.sync( [includePattern], { ignore: ignoreThese });
963964
gulp.watch([files], {readDelay: 500}, function (event, done) {
964965
gutil.log('Dev Guide example changed')
965966
gutil.log('Event type: ' + event.type); // added, changed, or deleted

0 commit comments

Comments
 (0)