mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
build: do not remove html and css from the release (#1109)
This commit is contained in:
@@ -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)'));
|
||||
|
||||
@@ -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
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user