From ebda601ab36147700c50183031aa5aae1e6f1bba Mon Sep 17 00:00:00 2001 From: jlukic Date: Wed, 7 Jan 2015 14:21:51 -0500 Subject: [PATCH] Add watch/build task hook for rtl task with setting #1552 --- gulpfile.js | 9 +++++++++ semantic.json.example | 3 ++- tasks/defaults.js | 2 ++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 76e2c8eaa..dd1f635dd 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -182,6 +182,10 @@ gulp.task('watch', 'Watch for site/theme changes (Default Task)', function(callb return; } + if(config.rtl) { + gulp.start('watch rtl'); + return; + } // watching changes in style gulp @@ -338,6 +342,11 @@ gulp.task('build', 'Builds all files from source', function(callback) { return; } + if(config.rtl) { + gulp.start('build rtl'); + return; + } + // get relative asset path (path returns wrong path?) // assetPaths.source = path.relative(srcPath, path.resolve(source.themes)); assetPaths.source = '../../themes'; // hardcoded diff --git a/semantic.json.example b/semantic.json.example index 664911d67..f07e3dc62 100644 --- a/semantic.json.example +++ b/semantic.json.example @@ -17,6 +17,7 @@ "clean" : "dist/" }, - "permission" : 644 + "permission" : 644, + "rtl": false } diff --git a/tasks/defaults.js b/tasks/defaults.js index 2b4f5305e..000b835ef 100644 --- a/tasks/defaults.js +++ b/tasks/defaults.js @@ -6,7 +6,9 @@ module.exports = { base : '', theme : './src/theme.config', + permission : 644, + rtl : false, docs : { source : '../docs/server/files/release/',