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/',