parent
c4ae1f1b1b
commit
59204bfbc8
|
@ -627,10 +627,10 @@ function devGuideExamplesWatch(shredOptions, postShredAction) {
|
||||||
|
|
||||||
function devGuideSharedJadeWatch(shredOptions, postShredAction) {
|
function devGuideSharedJadeWatch(shredOptions, postShredAction) {
|
||||||
var includePattern = path.join(DOCS_PATH, '**/*.jade');
|
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.
|
// 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) {
|
// 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) {
|
gulp.watch([files], {readDelay: 500}, function (event, done) {
|
||||||
gutil.log('Dev Guide jade file changed')
|
gutil.log('Dev Guide jade file changed')
|
||||||
gutil.log('Event type: ' + event.type); // added, changed, or deleted
|
gutil.log('Event type: ' + event.type); // added, changed, or deleted
|
||||||
|
|
|
@ -53,11 +53,12 @@ var shredSingleJadeDir = function(shredOptions, filePath) {
|
||||||
includeSubdirs: false,
|
includeSubdirs: false,
|
||||||
jadeDir: jadeDir
|
jadeDir: jadeDir
|
||||||
}
|
}
|
||||||
var cleanPath = path.join(jadeDir, '_.*.jade')
|
// var cleanPath = path.join(jadeDir, '_.*.jade')
|
||||||
return delPromise([ cleanPath]).then(function(paths) {
|
//return delPromise([ cleanPath]).then(function(paths) {
|
||||||
console.log('Deleted files/folders:\n', paths.join('\n'));
|
// console.log('Deleted files/folders:\n', paths.join('\n'));
|
||||||
return shred(options);
|
// return shred(options);
|
||||||
});
|
//});
|
||||||
|
return shred(options);
|
||||||
}
|
}
|
||||||
|
|
||||||
var buildShredMap = function(shredMapOptions) {
|
var buildShredMap = function(shredMapOptions) {
|
||||||
|
|
Loading…
Reference in New Issue