From 3ffeaefb55416b20c1040a5b089cb853daf7bae7 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Sun, 21 May 2017 00:01:43 +0300 Subject: [PATCH] gulp build copying views to /out --- gulpfile.babel.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 2b0fdc9d..dd591be9 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -74,6 +74,11 @@ gulp.task('copy templates', () => { .pipe(gulp.dest('./out/templates')) }) +gulp.task('copy views', () => { + return gulp.src('./src/views/**') + .pipe(gulp.dest('./out/views')) +}) + gulp.task('compile', () => { const doWatch = !isProduction const doSourceMaps = !isProduction @@ -117,6 +122,6 @@ gulp.task('production', () => { }) gulp.task('default', ['style', 'compile']) -gulp.task('copy', ['copy templates', 'copy fonts', 'copy graphics', 'copy 3rdparty', 'copy robots.txt']) +gulp.task('copy', ['copy views', 'copy templates', 'copy fonts', 'copy graphics', 'copy 3rdparty', 'copy robots.txt']) gulp.task('deploy', ['default', 'copy', 'compile 3rdparty', 'imagemin']) gulp.task('compile production', ['production', 'compile'])