chore(doc-gen): clean dist/angular.io folder when generating those docs
This commit is contained in:
parent
f2ef90b240
commit
aadaa20706
|
@ -122,7 +122,8 @@ var CONFIG = {
|
||||||
dart2js: 'dist/js/dart2js'
|
dart2js: 'dist/js/dart2js'
|
||||||
},
|
},
|
||||||
dart: 'dist/dart',
|
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);
|
del(CONFIG.dest.docs, done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
gulp.task('build/clean.docs_angular_io', function(done) {
|
||||||
|
del(CONFIG.dest.docs_angular_io, done);
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
// ------------
|
// ------------
|
||||||
// transpile
|
// transpile
|
||||||
|
@ -345,7 +350,7 @@ function createDocsTasks(publicBuild) {
|
||||||
createDocsTasks(true);
|
createDocsTasks(true);
|
||||||
createDocsTasks(false);
|
createDocsTasks(false);
|
||||||
|
|
||||||
gulp.task('docs/angular.io', function() {
|
gulp.task('docs/angular.io', ['build/clean.docs_angular_io'], function() {
|
||||||
try {
|
try {
|
||||||
var dgeni = new Dgeni([require('./docs/angular.io-package')]);
|
var dgeni = new Dgeni([require('./docs/angular.io-package')]);
|
||||||
return dgeni.generate();
|
return dgeni.generate();
|
||||||
|
|
Loading…
Reference in New Issue