You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
749 B

  1. /*******************************
  2. Build Task
  3. *******************************/
  4. var
  5. gulp = require('gulp'),
  6. // config
  7. config = require('./config/user'),
  8. install = require('./config/project/install')
  9. ;
  10. module.exports = function(callback) {
  11. console.info('Building Semantic');
  12. if( !install.isSetup() ) {
  13. console.error('Cannot find semantic.json. Run "gulp install" to set-up Semantic');
  14. return;
  15. }
  16. // check for right-to-left (RTL) language
  17. if(config.rtl == 'both') {
  18. gulp.start('build-rtl');
  19. }
  20. if(config.rtl === true || config.rtl === 'Yes') {
  21. gulp.start('build-rtl');
  22. return;
  23. }
  24. gulp.start('build-javascript');
  25. gulp.start('build-css');
  26. gulp.start('build-assets');
  27. };