From 8f9e8956a2556caafdbcd9a09637a246e6106c27 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sun, 17 Feb 2019 22:59:41 +0100 Subject: update --- gulpfile.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'gulpfile.js') diff --git a/gulpfile.js b/gulpfile.js index b13ee08..c056b10 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -46,6 +46,14 @@ gulp.task('css', () => gulp.src(settings.assets.css) .pipe(gulp.dest('tmp')) ); +gulp.task('copy-robots', () => gulp.src('robots.txt') + .pipe(gulp.dest('public')) +); + +gulp.task('copy-files', () => gulp.src('files/**/*') + .pipe(gulp.dest('public/files')) +); + gulp.task('generate-static', function (done) { fs.readdir('content', function (err, items) { @@ -158,4 +166,4 @@ const watchers = (done) => { } gulp.task('dev', gulp.parallel(watchers)); -gulp.task('build', gulp.series('css', 'js', 'generate-static')); +gulp.task('build', gulp.series('css', 'js', 'copy-robots', 'copy-files', 'generate-static')); -- cgit v1.2.3