From 9a08d2a34b577a40e8410377e6a66b2c040627f9 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Sun, 2 Jul 2017 14:07:09 +0200 Subject: [PATCH] build: use sequence task function from build-tools * Switches the manual use of `run-sequence` to the utility function `sequenceTask` from the build-tools. --- tools/gulp/util/task_helpers.ts | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/tools/gulp/util/task_helpers.ts b/tools/gulp/util/task_helpers.ts index c35921a5f532..e923e2364ac7 100644 --- a/tools/gulp/util/task_helpers.ts +++ b/tools/gulp/util/task_helpers.ts @@ -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] + ); } /**