From aadaa20706481a2f81342f9983ff06d8766a4077 Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Fri, 19 Jun 2015 19:04:41 +0100 Subject: [PATCH] chore(doc-gen): clean dist/angular.io folder when generating those docs --- gulpfile.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 086d610910..806a87fb69 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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();