From 5a4965fb380a9eeda925d05789341bd0b8b63473 Mon Sep 17 00:00:00 2001 From: "chris062689@gmail.com" Date: Tue, 18 Dec 2018 20:37:54 -0500 Subject: [PATCH] Updated callbacks for gulp. --- gulpfile.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index ff909cb..8f0a67e 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -52,6 +52,7 @@ gulp.task('assets:images', function() { var screenshotImages = gulp.src(`build/images/screenshots/*`) .pipe(imageResize({ width: 400, height: 240, crop: false })) .pipe(gulp.dest(`build/images/screenshots/thumbs`)); + return merge(baseImages, jumbotronImages, bannerImages, boxartImages, iconImages, screenshotImages); }); @@ -83,7 +84,7 @@ gulp.task('hugo', function (cb) { }); }); -gulp.task('final:serve', function() { +gulp.task('final:serve', function(done) { browserSync.init({ open: false, server: { @@ -99,11 +100,14 @@ gulp.task('final:serve', function() { gulp.watch('build/**/*').on('change', function() { browserSync.reload(x); }); + + done() }); -gulp.task('final:publish', function(){ +gulp.task('final:publish', function(done) { fs.writeFileSync(`build/CNAME`, `${cname}`); fs.writeFileSync(`build/robots.txt`, `Sitemap: https://${cname}/sitemap.xml\n\nUser-agent: *`); + done() }); const cname = 'citra-emu.org';