1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-05 02:22:31 +01:00
Radarr/frontend/gulp/copy.js

35 lines
926 B
JavaScript
Raw Normal View History

const path = require('path');
const gulp = require('gulp');
const print = require('gulp-print').default;
const cache = require('gulp-cached');
const livereload = require('gulp-livereload');
const paths = require('./helpers/paths.js');
2018-11-23 08:04:42 +01:00
gulp.task('copyHtml', () => {
return gulp.src(paths.src.html, { base: paths.src.root })
2018-11-23 08:04:42 +01:00
.pipe(cache('copyHtml'))
.pipe(print())
.pipe(gulp.dest(paths.dest.root))
.pipe(livereload());
});
gulp.task('copyFonts', () => {
return gulp.src(
path.join(paths.src.fonts, '**', '*.*'), { base: paths.src.root }
2018-11-23 08:04:42 +01:00
)
.pipe(cache('copyFonts'))
.pipe(print())
.pipe(gulp.dest(paths.dest.root))
2018-11-23 08:04:42 +01:00
.pipe(livereload());
});
gulp.task('copyImages', () => {
return gulp.src(
path.join(paths.src.images, '**', '*.*'), { base: paths.src.root }
2018-11-23 08:04:42 +01:00
)
.pipe(cache('copyImages'))
.pipe(print())
.pipe(gulp.dest(paths.dest.root))
2018-11-23 08:04:42 +01:00
.pipe(livereload());
});