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.

47 lines
876 B

  1. /*******************************
  2. Build Task
  3. *******************************/
  4. let
  5. // dependencies
  6. gulp = require('gulp'),
  7. // config
  8. config = require('./config/user'),
  9. install = require('./config/project/install'),
  10. buildJS = require('./build/javascript'),
  11. buildCSS = require('./build/css'),
  12. buildAssets = require('./build/assets'),
  13. // rtl
  14. buildRTL = require('./rtl/build'),
  15. // task sequence
  16. tasks = [],
  17. {series, parallel} = gulp,
  18. build
  19. ;
  20. if(config.rtl == 'both') {
  21. tasks.push(buildRTL);
  22. }
  23. if(config.rtl === true || config.rtl === 'Yes') {
  24. tasks.push(buildRTL);
  25. }
  26. else {
  27. tasks.push(buildJS);
  28. tasks.push(buildCSS);
  29. tasks.push(buildAssets);
  30. }
  31. build = parallel(tasks);
  32. /* Export with Metadata */
  33. build.displayName = 'build';
  34. build.description = 'Build SUI from source';
  35. module.exports = build;