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

Commit b31886b

Browse files
committed
chore(gulpfile): don't watch generated dart packages
1 parent f7cf6fd commit b31886b

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
@@ -942,8 +942,9 @@ function devGuideExamplesWatch(shredOptions, postShredAction) {
942942
// removed this version because gulp.watch has the same glob issue that dgeni has.
943943
// var excludePattern = '!' + path.join(shredOptions.examplesDir, '**/node_modules/**/*.*');
944944
// gulp.watch([includePattern, excludePattern], {readDelay: 500}, function (event, done) {
945-
var files = globby.sync( [includePattern], { ignore: [ '**/node_modules/**', '**/_fragments/**',
946-
'**/dart/build/**' ]});
945+
var ignoreThese = [ '**/node_modules/**', '**/_fragments/**',
946+
'**/dart/.pub/**', '**/dart/build/**', '**/dart/packages/**'];
947+
var files = globby.sync( [includePattern], { ignore: ignoreThese });
947948
gulp.watch([files], {readDelay: 500}, function (event, done) {
948949
gutil.log('Dev Guide example changed')
949950
gutil.log('Event type: ' + event.type); // added, changed, or deleted

0 commit comments

Comments
 (0)