From 02c75936505cb7993c8a7ec8bc1a297ab460e1dd Mon Sep 17 00:00:00 2001 From: Hans Date: Tue, 23 Aug 2016 18:45:26 -0700 Subject: [PATCH] build: do not remove html and css from the release (#1109) --- tools/gulp/tasks/clean.ts | 2 -- tools/gulp/tasks/release.ts | 7 +++++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/gulp/tasks/clean.ts b/tools/gulp/tasks/clean.ts index 3347577b1a0..96900f2484e 100644 --- a/tools/gulp/tasks/clean.ts +++ b/tools/gulp/tasks/clean.ts @@ -3,5 +3,3 @@ import {cleanTask} from '../task_helpers'; task('clean', cleanTask('dist')); -task(':clean:spec', cleanTask('dist/**/*.spec.*')); -task(':clean:assets', cleanTask('dist/**/*+(.html|.css)')); diff --git a/tools/gulp/tasks/release.ts b/tools/gulp/tasks/release.ts index 95a1fd4724b..0b5e152bb80 100644 --- a/tools/gulp/tasks/release.ts +++ b/tools/gulp/tasks/release.ts @@ -5,18 +5,21 @@ import gulpRunSequence = require('run-sequence'); import path = require('path'); import minimist = require('minimist'); -import {execTask} from '../task_helpers'; +import {execTask, cleanTask} from '../task_helpers'; import {DIST_COMPONENTS_ROOT} from '../constants'; const argv = minimist(process.argv.slice(3)); +task(':build:release:clean-spec', cleanTask('dist/**/*.spec.*')); + + task('build:release', function(done: () => void) { // Synchronously run those tasks. gulpRunSequence( 'clean', ':build:components:ngc', - [':clean:spec', ':clean:assets'], + ':build:release:clean-spec', done ); });