@@ -615,7 +615,13 @@ gulp.task('_harp-compile', function() {
615
615
} ) ;
616
616
617
617
gulp . task ( '_shred-devguide-examples' , [ '_shred-clean-devguide' , '_copy-example-boilerplate' ] , function ( ) {
618
- return docShredder . shred ( _devguideShredOptions ) ;
618
+ // Split big shredding task into partials 2016-06-14
619
+ var examplePaths = globby . sync ( EXAMPLES_PATH + '/*/' , { ignore : [ '/node_modules' , 'typings/' , '_protractor/' ] } ) ;
620
+ var promise = Promise . resolve ( true ) ;
621
+ examplePaths . forEach ( function ( examplePath ) {
622
+ promise = promise . then ( ( ) => docShredder . shredSingleExampleDir ( _devguideShredOptions , examplePath ) ) ;
623
+ } ) ;
624
+ return promise ;
619
625
} ) ;
620
626
621
627
gulp . task ( '_shred-devguide-shared-jade' , [ '_shred-clean-devguide-shared-jade' , '_copy-example-boilerplate' ] , function ( ) {
@@ -978,7 +984,7 @@ function devGuideExamplesWatch(shredOptions, postShredAction) {
978
984
// removed this version because gulp.watch has the same glob issue that dgeni has.
979
985
// var excludePattern = '!' + path.join(shredOptions.examplesDir, '**/node_modules/**/*.*');
980
986
// gulp.watch([includePattern, excludePattern], {readDelay: 500}, function (event, done) {
981
- var ignoreThese = [ '**/node_modules/**' , '**/_fragments/**' ,
987
+ var ignoreThese = [ '**/node_modules/**' , '**/_fragments/**' , '**/dist/**' , '**/typings/**' ,
982
988
'**/dart/.pub/**' , '**/dart/build/**' , '**/dart/packages/**' ] ;
983
989
var files = globby . sync ( [ includePattern ] , { ignore : ignoreThese } ) ;
984
990
gulp . watch ( [ files ] , { readDelay : 500 } , function ( event , done ) {
@@ -994,7 +1000,7 @@ function devGuideSharedJadeWatch(shredOptions, postShredAction) {
994
1000
// removed this version because gulp.watch has the same glob issue that dgeni has.
995
1001
// var excludePattern = '!' + path.join(shredOptions.jadeDir, '**/node_modules/**/*.*');
996
1002
// gulp.watch([includePattern, excludePattern], {readDelay: 500}, function (event, done) {
997
- var files = globby . sync ( [ includePattern ] , { ignore : [ '**/node_modules/**' , '**/_fragments/**' ] } ) ;
1003
+ var files = globby . sync ( [ includePattern ] , { ignore : [ '**/node_modules/**' , '**/_examples/**' , '**/ _fragments/**'] } ) ;
998
1004
gulp . watch ( [ files ] , { readDelay : 500 } , function ( event , done ) {
999
1005
gutil . log ( 'Dev Guide jade file changed' )
1000
1006
gutil . log ( 'Event type: ' + event . type ) ; // added, changed, or deleted
0 commit comments