diff --git a/gulpfile.js b/gulpfile.js index fda5aa1e2b..5f2f94aa3a 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -627,10 +627,10 @@ function devGuideExamplesWatch(shredOptions, postShredAction) { function devGuideSharedJadeWatch(shredOptions, postShredAction) { var includePattern = path.join(DOCS_PATH, '**/*.jade'); - var excludePattern = '!' + path.join(shredOptions.jadeDir, '**/node_modules/**/*.*'); // removed this version because gulp.watch has the same glob issue that dgeni has. + // var excludePattern = '!' + path.join(shredOptions.jadeDir, '**/node_modules/**/*.*'); // gulp.watch([includePattern, excludePattern], {readDelay: 500}, function (event, done) { - var files = globby.sync( [includePattern], { ignore: [ '**/node_modules/**']}); + var files = globby.sync( [includePattern], { ignore: [ '**/node_modules/**', '**/_.*.jade']}); gulp.watch([files], {readDelay: 500}, function (event, done) { gutil.log('Dev Guide jade file changed') gutil.log('Event type: ' + event.type); // added, changed, or deleted diff --git a/tools/doc-shredder/doc-shredder.js b/tools/doc-shredder/doc-shredder.js index 4d4698055a..e834071ea3 100644 --- a/tools/doc-shredder/doc-shredder.js +++ b/tools/doc-shredder/doc-shredder.js @@ -53,11 +53,12 @@ var shredSingleJadeDir = function(shredOptions, filePath) { includeSubdirs: false, jadeDir: jadeDir } - var cleanPath = path.join(jadeDir, '_.*.jade') - return delPromise([ cleanPath]).then(function(paths) { - console.log('Deleted files/folders:\n', paths.join('\n')); - return shred(options); - }); + // var cleanPath = path.join(jadeDir, '_.*.jade') + //return delPromise([ cleanPath]).then(function(paths) { + // console.log('Deleted files/folders:\n', paths.join('\n')); + // return shred(options); + //}); + return shred(options); } var buildShredMap = function(shredMapOptions) {