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.

36 lines
721 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. if(config.rtl !== 'both') {
  20. return;
  21. }
  22. }
  23. gulp.start('build-javascript');
  24. gulp.start('build-css');
  25. gulp.start('build-assets');
  26. };