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.

42 lines
883 B

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