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
777 B

  1. /*******************************
  2. Build Task
  3. *******************************/
  4. var
  5. gulp = require('gulp'),
  6. // gulp dependencies
  7. chmod = require('gulp-chmod'),
  8. gulpif = require('gulp-if'),
  9. // config
  10. config = require('../config/user'),
  11. tasks = require('../config/tasks'),
  12. // shorthand
  13. globs = config.globs,
  14. assets = config.paths.assets,
  15. output = config.paths.output,
  16. source = config.paths.source,
  17. log = tasks.log
  18. ;
  19. module.exports = function(callback) {
  20. console.info('Building assets');
  21. // copy assets
  22. return gulp.src(source.themes + '/**/assets/**/*.*')
  23. .pipe(gulpif(config.hasPermission, chmod(config.permission)))
  24. .pipe(gulp.dest(output.themes))
  25. ;
  26. };