chore(doc-gen): clean dist/angular.io folder when generating those docs

This commit is contained in:
Peter Bacon Darwin 2015-06-19 19:04:41 +01:00
parent f2ef90b240
commit aadaa20706
1 changed files with 7 additions and 2 deletions

View File

@ -122,7 +122,8 @@ var CONFIG = {
dart2js: 'dist/js/dart2js'
},
dart: 'dist/dart',
docs: 'dist/docs'
docs: 'dist/docs',
docs_angular_io: 'dist/angular.io'
}
};
@ -145,6 +146,10 @@ gulp.task('build/clean.docs', function(done) {
del(CONFIG.dest.docs, done);
});
gulp.task('build/clean.docs_angular_io', function(done) {
del(CONFIG.dest.docs_angular_io, done);
});
// ------------
// transpile
@ -345,7 +350,7 @@ function createDocsTasks(publicBuild) {
createDocsTasks(true);
createDocsTasks(false);
gulp.task('docs/angular.io', function() {
gulp.task('docs/angular.io', ['build/clean.docs_angular_io'], function() {
try {
var dgeni = new Dgeni([require('./docs/angular.io-package')]);
return dgeni.generate();