mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
build: use sequence task function from build-tools (#5473)
* Switches the manual use of `run-sequence` to the utility function `sequenceTask` from the build-tools.
This commit is contained in:
committed by
mmalerba
parent
3580806adb
commit
41942d4678
@@ -2,11 +2,10 @@ import * as child_process from 'child_process';
|
||||
import * as fs from 'fs';
|
||||
import * as gulp from 'gulp';
|
||||
import * as path from 'path';
|
||||
import {buildConfig} from 'material2-build-tools';
|
||||
import {buildConfig, sequenceTask} from 'material2-build-tools';
|
||||
|
||||
/* Those imports lack typings. */
|
||||
const gulpClean = require('gulp-clean');
|
||||
const gulpRunSequence = require('run-sequence');
|
||||
const gulpConnect = require('gulp-connect');
|
||||
|
||||
// There are no type definitions available for these imports.
|
||||
@@ -129,13 +128,10 @@ export function buildAppTask(appName: string) {
|
||||
.map(taskName => `:build:${appName}:${taskName}`)
|
||||
.filter(taskName => gulp.hasTask(taskName));
|
||||
|
||||
return (done: () => void) => {
|
||||
gulpRunSequence(
|
||||
'material:clean-build',
|
||||
[...buildTasks],
|
||||
done
|
||||
);
|
||||
};
|
||||
return sequenceTask(
|
||||
'material:clean-build',
|
||||
[...buildTasks]
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user