From df466844dcddf1b209b7b4d4f769b71534c617bf Mon Sep 17 00:00:00 2001 From: artemkaint Date: Thu, 13 Aug 2015 16:12:12 +0300 Subject: [PATCH] Fix callback return from build task --- tasks/build.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tasks/build.js b/tasks/build.js index f70d9c5df..cd7111895 100644 --- a/tasks/build.js +++ b/tasks/build.js @@ -7,6 +7,7 @@ var // config config = require('./config/user'), + runSequence = require('run-sequence'), install = require('./config/project/install') ; @@ -25,18 +26,20 @@ module.exports = function(callback) { return; } + var tasks = []; + // check for right-to-left (RTL) language if(config.rtl == 'both') { - gulp.start('build-rtl'); + tasks.push('build-rtl'); } if(config.rtl === true || config.rtl === 'Yes') { gulp.start('build-rtl'); return; } - gulp.start('build-javascript'); - gulp.start('build-css'); - gulp.start('build-assets'); - + tasks.push('build-javascript'); + tasks.push('build-css'); + tasks.push('build-assets'); + runSequence(tasks, callback); };