2014-08-28 23:40:18 +02:00
|
|
|
var gulp = require('gulp');
|
|
|
|
var print = require('gulp-print');
|
|
|
|
var cache = require('gulp-cached');
|
2015-07-22 04:38:46 +02:00
|
|
|
var livereload = require('gulp-livereload');
|
2014-08-28 23:40:18 +02:00
|
|
|
|
|
|
|
var paths = require('./paths.js');
|
|
|
|
|
|
|
|
gulp.task('copyJs', function () {
|
2015-07-22 04:38:46 +02:00
|
|
|
return gulp.src(
|
|
|
|
[
|
|
|
|
paths.src.root + 'polyfills.js',
|
|
|
|
paths.src.root + 'JsLibraries/handlebars.runtime.js'
|
|
|
|
])
|
|
|
|
.pipe(cache('copyJs'))
|
|
|
|
.pipe(print())
|
|
|
|
.pipe(gulp.dest(paths.dest.root))
|
|
|
|
.pipe(livereload());
|
2014-08-28 23:40:18 +02:00
|
|
|
});
|
|
|
|
|
2015-01-26 03:03:21 +01:00
|
|
|
gulp.task('copyHtml', function () {
|
2015-07-22 04:38:46 +02:00
|
|
|
return gulp.src(paths.src.html)
|
|
|
|
.pipe(cache('copyHtml'))
|
|
|
|
.pipe(gulp.dest(paths.dest.root))
|
|
|
|
.pipe(livereload());
|
2014-08-28 23:40:18 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
gulp.task('copyContent', function () {
|
2017-06-13 08:39:42 +02:00
|
|
|
return gulp.src([paths.src.content + '**/*.*', '!**/*.less', '!**/*.css'])
|
2015-07-22 04:38:46 +02:00
|
|
|
.pipe(gulp.dest(paths.dest.content))
|
|
|
|
.pipe(livereload());
|
2015-01-26 03:03:21 +01:00
|
|
|
});
|