Browse Source

Add watch/build task hook for rtl task with setting #1552

pull/1615/head
jlukic 10 years ago
parent
commit
ebda601ab3
3 changed files with 13 additions and 1 deletions
  1. 9
      gulpfile.js
  2. 3
      semantic.json.example
  3. 2
      tasks/defaults.js

9
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

3
semantic.json.example

@ -17,6 +17,7 @@
"clean" : "dist/"
},
"permission" : 644
"permission" : 644,
"rtl": false
}

2
tasks/defaults.js

@ -6,7 +6,9 @@ module.exports = {
base : '',
theme : './src/theme.config',
permission : 644,
rtl : false,
docs : {
source : '../docs/server/files/release/',

Loading…
Cancel
Save