Skip to content

Commit 41942d4

Browse files
devversionmmalerba
authored andcommitted
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.
1 parent 3580806 commit 41942d4

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

tools/gulp/util/task_helpers.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ import * as child_process from 'child_process';
22
import * as fs from 'fs';
33
import * as gulp from 'gulp';
44
import * as path from 'path';
5-
import {buildConfig} from 'material2-build-tools';
5+
import {buildConfig, sequenceTask} from 'material2-build-tools';
66

77
/* Those imports lack typings. */
88
const gulpClean = require('gulp-clean');
9-
const gulpRunSequence = require('run-sequence');
109
const gulpConnect = require('gulp-connect');
1110

1211
// There are no type definitions available for these imports.
@@ -129,13 +128,10 @@ export function buildAppTask(appName: string) {
129128
.map(taskName => `:build:${appName}:${taskName}`)
130129
.filter(taskName => gulp.hasTask(taskName));
131130

132-
return (done: () => void) => {
133-
gulpRunSequence(
134-
'material:clean-build',
135-
[...buildTasks],
136-
done
137-
);
138-
};
131+
return sequenceTask(
132+
'material:clean-build',
133+
[...buildTasks]
134+
);
139135
}
140136

141137
/**

0 commit comments

Comments
 (0)