diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2019-02-17 22:59:41 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2019-02-17 22:59:41 +0100 |
| commit | 8f9e8956a2556caafdbcd9a09637a246e6106c27 (patch) | |
| tree | 2a33e82edd98d4181663ad011a02d01f70fa73c7 /gulpfile.js | |
| parent | 9ab7402609d7eee5ef8f0635d87c2014eafcab28 (diff) | |
| download | mitjafelicijan.com-8f9e8956a2556caafdbcd9a09637a246e6106c27.tar.gz | |
update
Diffstat (limited to 'gulpfile.js')
| -rw-r--r-- | gulpfile.js | 10 |
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 | ||
| 49 | gulp.task('copy-robots', () => gulp.src('robots.txt') | ||
| 50 | .pipe(gulp.dest('public')) | ||
| 51 | ); | ||
| 52 | |||
| 53 | gulp.task('copy-files', () => gulp.src('files/**/*') | ||
| 54 | .pipe(gulp.dest('public/files')) | ||
| 55 | ); | ||
| 56 | |||
| 49 | gulp.task('generate-static', function (done) { | 57 | gulp.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 | ||
| 160 | gulp.task('dev', gulp.parallel(watchers)); | 168 | gulp.task('dev', gulp.parallel(watchers)); |
| 161 | gulp.task('build', gulp.series('css', 'js', 'generate-static')); | 169 | gulp.task('build', gulp.series('css', 'js', 'copy-robots', 'copy-files', 'generate-static')); |
