From 535ad5623dcf4a81386d51a59b9a6b3859a73411 Mon Sep 17 00:00:00 2001 From: jlukic Date: Thu, 7 May 2015 15:52:40 -0400 Subject: [PATCH] Add RTL: both option --- tasks/build.js | 4 +++- tasks/config/project/install.js | 4 ++++ tasks/watch.js | 4 +++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/tasks/build.js b/tasks/build.js index f9c941f7f..c145d2676 100644 --- a/tasks/build.js +++ b/tasks/build.js @@ -23,7 +23,9 @@ module.exports = function(callback) { // check for right-to-left language if(config.rtl === true || config.rtl === 'Yes') { gulp.start('build-rtl'); - return; + if(config.rtl !== 'both') { + return; + } } gulp.start('build-javascript'); diff --git a/tasks/config/project/install.js b/tasks/config/project/install.js index a0df16d25..7f1a20078 100644 --- a/tasks/config/project/install.js +++ b/tasks/config/project/install.js @@ -440,6 +440,10 @@ module.exports = { name: 'Yes', value: true }, + { + name: 'Build Both', + value: 'both' + } ] }, { diff --git a/tasks/watch.js b/tasks/watch.js index 09354d152..431082c02 100644 --- a/tasks/watch.js +++ b/tasks/watch.js @@ -59,7 +59,9 @@ module.exports = function(callback) { // check for right-to-left language if(config.rtl === true || config.rtl === 'Yes') { gulp.start('watch-rtl'); - return; + if(config.rtl != 'both') { + return; + } } //console.clear();