Skip to content

Commit 02c7593

Browse files
hansljelbourn
authored andcommitted
build: do not remove html and css from the release (#1109)
1 parent f3a7b91 commit 02c7593

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

tools/gulp/tasks/clean.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,3 @@ import {cleanTask} from '../task_helpers';
33

44

55
task('clean', cleanTask('dist'));
6-
task(':clean:spec', cleanTask('dist/**/*.spec.*'));
7-
task(':clean:assets', cleanTask('dist/**/*+(.html|.css)'));

tools/gulp/tasks/release.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,21 @@ import gulpRunSequence = require('run-sequence');
55
import path = require('path');
66
import minimist = require('minimist');
77

8-
import {execTask} from '../task_helpers';
8+
import {execTask, cleanTask} from '../task_helpers';
99
import {DIST_COMPONENTS_ROOT} from '../constants';
1010

1111
const argv = minimist(process.argv.slice(3));
1212

1313

14+
task(':build:release:clean-spec', cleanTask('dist/**/*.spec.*'));
15+
16+
1417
task('build:release', function(done: () => void) {
1518
// Synchronously run those tasks.
1619
gulpRunSequence(
1720
'clean',
1821
':build:components:ngc',
19-
[':clean:spec', ':clean:assets'],
22+
':build:release:clean-spec',
2023
done
2124
);
2225
});

0 commit comments

Comments
 (0)