aboutsummaryrefslogtreecommitdiff
path: root/gulpfile.js
diff options
context:
space:
mode:
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js10
1 files changed, 9 insertions, 1 deletions
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)
46 .pipe(gulp.dest('tmp')) 46 .pipe(gulp.dest('tmp'))
47); 47);
48 48
49gulp.task('copy-robots', () => gulp.src('robots.txt')
50 .pipe(gulp.dest('public'))
51);
52
53gulp.task('copy-files', () => gulp.src('files/**/*')
54 .pipe(gulp.dest('public/files'))
55);
56
49gulp.task('generate-static', function (done) { 57gulp.task('generate-static', function (done) {
50 fs.readdir('content', function (err, items) { 58 fs.readdir('content', function (err, items) {
51 59
@@ -158,4 +166,4 @@ const watchers = (done) => {
158} 166}
159 167
160gulp.task('dev', gulp.parallel(watchers)); 168gulp.task('dev', gulp.parallel(watchers));
161gulp.task('build', gulp.series('css', 'js', 'generate-static')); 169gulp.task('build', gulp.series('css', 'js', 'copy-robots', 'copy-files', 'generate-static'));