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.

34 lines
681 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 language
  17. if(config.rtl === true || config.rtl === 'Yes') {
  18. gulp.start('build-rtl');
  19. return;
  20. }
  21. gulp.start('build-javascript');
  22. gulp.start('build-css');
  23. gulp.start('build-assets');
  24. };