@@ -87,8 +87,8 @@ var _excludeMatchers = _excludePatterns.map(function(excludePattern){
87
87
} ) ;
88
88
89
89
var _exampleBoilerplateFiles = [
90
- 'a2docs.css' ,
91
90
'.editorconfig' ,
91
+ 'a2docs.css' ,
92
92
'karma.conf.js' ,
93
93
'karma-test-shim.js' ,
94
94
'package.json' ,
@@ -100,7 +100,7 @@ var _exampleBoilerplateFiles = [
100
100
'wallaby.js'
101
101
] ;
102
102
103
- var _exampleDartWebBoilerPlateFiles = [ 'styles.css' ] ;
103
+ var _exampleDartWebBoilerPlateFiles = [ 'a2docs.css' , ' styles.css'] ;
104
104
105
105
var _exampleProtractorBoilerplateFiles = [
106
106
'tsconfig.json'
@@ -121,7 +121,7 @@ var _styleLessName = 'a2docs.less';
121
121
var lang , langs , buildDartApiDocs = false ;
122
122
function configLangs ( langOption ) {
123
123
const fullSiteBuildTasks = [ 'build-compile' , 'check-serve' , 'check-deploy' ] ;
124
- const buildAllDocs = argv [ '_' ] &&
124
+ const buildAllDocs = argv [ '_' ] &&
125
125
fullSiteBuildTasks . some ( ( task ) => argv [ '_' ] . indexOf ( task ) >= 0 ) ;
126
126
const langDefault = buildAllDocs ? 'all' : '(ts|js)' ;
127
127
lang = ( langOption || langDefault ) . toLowerCase ( ) ;
@@ -442,18 +442,18 @@ gulp.task('add-example-boilerplate', function() {
442
442
// copies boilerplate files to locations
443
443
// where an example app is found
444
444
gulp . task ( '_copy-example-boilerplate' , function ( ) {
445
- if ( ! argv . fast ) buildStyles ( copyExampleBoilerplate ) ;
445
+ if ( ! argv . fast ) return buildStyles ( copyExampleBoilerplate ) ;
446
446
} ) ;
447
447
448
448
//Builds Angular 2 Docs CSS file from Bootstrap npm LESS source
449
449
//and copies the result to the _examples folder to be included as
450
450
//part of the example boilerplate.
451
451
function buildStyles ( cb ) {
452
- gulp . src ( path . join ( STYLES_SOURCE_PATH , _styleLessName ) )
452
+ return gulp . src ( path . join ( STYLES_SOURCE_PATH , _styleLessName ) )
453
453
. pipe ( less ( ) )
454
454
. pipe ( gulp . dest ( EXAMPLES_PATH ) ) . on ( 'finish' , function ( ) {
455
455
return cb ( ) ;
456
- } ) ;
456
+ } ) ;
457
457
}
458
458
459
459
// copies boilerplate files to locations
@@ -473,8 +473,10 @@ function copyExampleBoilerplate() {
473
473
474
474
// Make boilerplate files read-only to avoid that they be edited by mistake.
475
475
var destFileMode = '444' ;
476
+ gutil . log ( '*** example files copied' )
476
477
return copyFiles ( sourceFiles , examplePaths , destFileMode )
477
478
. then ( function ( ) {
479
+ gutil . log ( '*** example files copied' )
478
480
return copyFiles ( dartWebSourceFiles , dartExampleWebPaths , destFileMode ) ;
479
481
} )
480
482
// copy certain files from _examples/_protractor dir to each subdir that contains an e2e-spec file.
@@ -596,6 +598,7 @@ gulp.task('build-dart-api-docs', ['_shred-api-examples', 'dartdoc'], function()
596
598
} ) ;
597
599
598
600
gulp . task ( 'build-plunkers' , [ '_copy-example-boilerplate' ] , function ( ) {
601
+ gutil . log ( '**** Building Plunkers' )
599
602
return plunkerBuilder . buildPlunkers ( EXAMPLES_PATH , LIVE_EXAMPLES_PATH , { errFn : gutil . log } ) ;
600
603
} ) ;
601
604
0 commit comments