Skip to content

Commit

Permalink
build: do not remove html and css from the release (#1109)
Browse files Browse the repository at this point in the history
  • Loading branch information
hansl authored and jelbourn committed Aug 24, 2016
1 parent f3a7b91 commit 02c7593
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 0 additions & 2 deletions tools/gulp/tasks/clean.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)'));
7 changes: 5 additions & 2 deletions tools/gulp/tasks/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
});
Expand Down

0 comments on commit 02c7593

Please sign in to comment.