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.

59 lines
1.4 KiB

  1. /*******************************
  2. Set-up
  3. *******************************/
  4. var
  5. gulp = require('gulp-help')(require('gulp')),
  6. // read user config to know what task to load
  7. config = require('./tasks/config/user'),
  8. // import tasks
  9. build = require('./tasks/build'),
  10. clean = require('./tasks/clean'),
  11. version = require('./tasks/version'),
  12. watch = require('./tasks/watch'),
  13. // docs tasks
  14. serveDocs = require('./tasks/docs/serve'),
  15. buildDocs = require('./tasks/docs/build'),
  16. // rtl
  17. buildRTL = require('./tasks/rtl/build'),
  18. watchRTL = require('./tasks/rtl/watch')
  19. ;
  20. /*--------------
  21. Common
  22. ---------------*/
  23. gulp.task('default', false, [
  24. 'watch'
  25. ]);
  26. gulp.task('watch', 'Watch for site/theme changes', watch);
  27. gulp.task('build', 'Builds all files from source', build);
  28. gulp.task('clean', 'Clean dist folder', clean);
  29. gulp.task('version', 'Displays current version of Semantic', version);
  30. /*--------------
  31. Docs
  32. ---------------*/
  33. /*
  34. See usage instruction in Docs Readme
  35. https://github.com/Semantic-Org/Semantic-UI-Docs/
  36. */
  37. gulp.task('serve-docs', 'Serve file changes to SUI Docs', serveDocs);
  38. gulp.task('build-docs', 'Build all files and add to SUI Docs', buildDocs);
  39. /*--------------
  40. RTL
  41. ---------------*/
  42. if(config.rtl) {
  43. gulp.task('watch-rtl', 'Build all files as RTL', watchRTL);
  44. gulp.task('build-rtl', 'Watch files as RTL ', buildRTL);
  45. }