From 3adc472f06f7c435b922ac3f905d021114029712 Mon Sep 17 00:00:00 2001 From: Pawel Kozlowski Date: Fri, 8 Jan 2016 14:51:29 +0100 Subject: [PATCH] chore(build): fix race condition for the !bundles.js.docs task --- gulpfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 103580a173..0b0a16240a 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1123,8 +1123,8 @@ gulp.task('!bundle.testing', ['build.js.dev'], function() { {sourceMaps: true}); }); -gulp.task('!bundles.js.docs', function() { - gulp.src('modules/angular2/docs/bundles/*').pipe(gulp.dest('dist/js/bundle')); +gulp.task('!bundles.js.docs', ['clean'], function() { + return gulp.src('modules/angular2/docs/bundles/*').pipe(gulp.dest('dist/js/bundle')); }); gulp.task('!bundles.js.umd', ['build.js.dev'], function() {