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.
 
 
 
 
 
 

39 lines
945 B

var gulp = require('gulp');
var config = require('../config.js');
gulp.task('copy:fonts', function() {
return gulp
.src(config.src.fonts + '/*.{ttf,eot,woff,woff2}')
.pipe(gulp.dest(config.dest.fonts));
});
gulp.task('copy:lib', function() {
return gulp
.src(config.src.lib + '/**/*.*')
.pipe(gulp.dest(config.dest.lib));
});
gulp.task('copy:rootfiles', function() {
return gulp
.src(config.src.root + '/*.*')
.pipe(gulp.dest(config.dest.root));
});
gulp.task('copy:img', function() {
return gulp
.src([
config.src.img + '/**/*.{jpg,png,jpeg,svg,gif,ico}',
'!' + config.src.img + '/svgo/**/*.*'
])
.pipe(gulp.dest(config.dest.img));
});
gulp.task('copy', [
'copy:img',
// 'copy:rootfiles',
// 'copy:lib',
'copy:fonts'
]);
gulp.task('copy:watch', function() {
gulp.watch(config.src.img+'/*', ['copy']);
});