2014-08-29 00:40:18 +03:00
|
|
|
var gulp = require('gulp');
|
|
|
|
var print = require('gulp-print');
|
|
|
|
var cache = require('gulp-cached');
|
|
|
|
|
|
|
|
var paths = require('./paths.js');
|
|
|
|
|
|
|
|
gulp.task('copyJs', function () {
|
2014-08-30 07:32:09 +03:00
|
|
|
return gulp.src(paths.src.scripts)
|
|
|
|
.pipe(cache('copyJs'))
|
|
|
|
.pipe(print())
|
2014-08-29 00:40:18 +03:00
|
|
|
.pipe(gulp.dest(paths.dest.root));
|
|
|
|
});
|
|
|
|
|
2015-01-26 04:03:21 +02:00
|
|
|
gulp.task('copyHtml', function () {
|
|
|
|
return gulp.src(paths.src.html)
|
|
|
|
.pipe(cache('copyHtml'))
|
2014-08-29 00:40:18 +03:00
|
|
|
.pipe(gulp.dest(paths.dest.root));
|
|
|
|
});
|
|
|
|
|
|
|
|
gulp.task('copyContent', function () {
|
|
|
|
return gulp.src([paths.src.content + '**/*.*', '!**/*.less'])
|
|
|
|
.pipe(gulp.dest(paths.dest.content));
|
2015-01-26 04:03:21 +02:00
|
|
|
});
|