2017-08-21 20:03:16 +00:00
|
|
|
var gulp = require('gulp');
|
|
|
|
|
2017-11-06 21:24:21 +00:00
|
|
|
var flatten = require('gulp-flatten');
|
2017-08-21 20:03:16 +00:00
|
|
|
var pump = require('pump');
|
|
|
|
|
|
|
|
var extrasConfig = require('../config.js').extrasConfig;
|
|
|
|
|
|
|
|
|
2017-11-06 21:24:21 +00:00
|
|
|
gulp.task('extras', ['extras:fonts', 'extras:images', 'extras:root']);
|
2017-08-21 20:03:16 +00:00
|
|
|
|
|
|
|
gulp.task('extras:fonts', function(cb) {
|
|
|
|
pump([
|
2017-10-23 19:13:11 +00:00
|
|
|
gulp.src(extrasConfig.fonts.files),
|
2017-08-21 20:03:16 +00:00
|
|
|
gulp.dest(extrasConfig.fonts.dest)
|
|
|
|
], cb);
|
|
|
|
});
|
2017-10-23 19:13:11 +00:00
|
|
|
|
2017-11-06 21:24:21 +00:00
|
|
|
gulp.task('extras:images', function(cb) {
|
|
|
|
pump([
|
|
|
|
gulp.src(extrasConfig.images.files),
|
|
|
|
flatten({ subPath: 3 }),
|
|
|
|
gulp.dest(extrasConfig.images.dest)
|
|
|
|
], cb);
|
|
|
|
});
|
|
|
|
|
2017-10-23 19:13:11 +00:00
|
|
|
gulp.task('extras:root', function(cb) {
|
|
|
|
pump([
|
|
|
|
gulp.src(extrasConfig.root.files),
|
|
|
|
gulp.dest(extrasConfig.root.dest)
|
|
|
|
], cb);
|
|
|
|
});
|