From 9917d7f8af8d7f0fda0441ee1c1b579e5d3c03d8 Mon Sep 17 00:00:00 2001 From: Pawel Kozlowski Date: Fri, 11 Dec 2015 16:48:40 +0100 Subject: [PATCH] chore(bundles): properly clean the dist/build folder The `dist/build` folder is created as part of the bundling process but it was never cleaned up in the `clean` task. Closes #5832 --- gulpfile.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 069b95f359..462de5ae47 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -137,7 +137,7 @@ var CONFIG = { dart: 'dist/dart', docs: 'dist/docs', docs_angular_io: 'dist/angular.io', - benchpress_bundle: 'dist/build/benchpress_bundle/' + bundles: {all: 'dist/build', benchpress: 'dist/build/benchpress_bundle/'} } }; @@ -162,7 +162,7 @@ var BENCHPRESS_BUNDLE_CONFIG = { includes: ['angular2'], excludes: ['reflect-metadata', 'selenium-webdriver', 'zone.js'], ignore: [], - dest: CONFIG.dest.benchpress_bundle + dest: CONFIG.dest.bundles.benchpress }; // ------------ @@ -179,8 +179,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); }); -gulp.task('build/clean.benchpress.bundle', - function(done) { del(CONFIG.dest.benchpress_bundle, done); }); +gulp.task('build/clean.bundles', function(done) { del(CONFIG.dest.bundles.all, done); }); + +gulp.task('build/clean.bundles.benchpress', + function(done) { del(CONFIG.dest.bundles.benchpress, done); }); // ------------ // transpile @@ -1257,7 +1259,7 @@ gulp.task('clean', [ 'build/clean.js', 'build/clean.dart', 'build/clean.docs', - 'build/clean.benchpress.bundle' + 'build/clean.bundles' ]); gulp.task('build', ['build.js', 'build.dart']); @@ -1348,7 +1350,7 @@ gulp.task('build.dart.material', ['build/packages.dart'], function(done) { gulp.task('cleanup.builder', function() { return angularBuilder.cleanup(); }); -gulp.task('benchpress.bundle', ['build/clean.benchpress.bundle', 'build.js.cjs'], function(cb) { +gulp.task('benchpress.bundle', ['build/clean.bundles.benchpress', 'build.js.cjs'], function(cb) { var bundler = require('./tools/build/bundle'); bundler.benchpressBundle(BENCHPRESS_BUNDLE_CONFIG.entries, BENCHPRESS_BUNDLE_CONFIG.packageJson,