Browse Source

Revert "Fix callback return from build task"

pull/2840/head
Jack Lukic 9 years ago
parent
commit
eb331afdc2
1 changed files with 5 additions and 8 deletions
  1. 13
      tasks/build.js

13
tasks/build.js

@ -7,7 +7,6 @@ var
// config
config = require('./config/user'),
runSequence = require('run-sequence'),
install = require('./config/project/install')
;
@ -26,20 +25,18 @@ module.exports = function(callback) {
return;
}
var tasks = [];
// check for right-to-left (RTL) language
if(config.rtl == 'both') {
tasks.push('build-rtl');
gulp.start('build-rtl');
}
if(config.rtl === true || config.rtl === 'Yes') {
gulp.start('build-rtl');
return;
}
tasks.push('build-javascript');
tasks.push('build-css');
tasks.push('build-assets');
gulp.start('build-javascript');
gulp.start('build-css');
gulp.start('build-assets');
runSequence(tasks, callback);
};
Loading…
Cancel
Save