From 75054c087f3bc6b83c99965970808dc9fdf3f13c Mon Sep 17 00:00:00 2001 From: STTR13 <35398967+STTR13@users.noreply.github.com> Date: Wed, 4 Dec 2019 23:16:54 +0100 Subject: [PATCH] changes for the file to work with gulp 4 and node 13 There is a problem when we try to run gulp 3 with node 12. So to fix this I had to change my vertions. I've got gulp 4 and node 13 wich work fine. The changes here are to adapt the gulp file to gulp 4 wich has some differences in writing [ https://stackoverflow.com/a/54939126/9208292 ]. --- 05 scorekeeper-starter/gulpfile.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/05 scorekeeper-starter/gulpfile.js b/05 scorekeeper-starter/gulpfile.js index f526836..85e0cf3 100644 --- a/05 scorekeeper-starter/gulpfile.js +++ b/05 scorekeeper-starter/gulpfile.js @@ -10,10 +10,9 @@ var gulp = require('gulp'), var cmd = 'elm make ./Main.elm --output ./bundle.js'; clear(); -gulp.task('default', ['server', 'watch', 'elm']); gulp.task('watch', function(cb) { - gulp.watch('**/*.elm', ['elm']); + gulp.watch('**/*.elm', gulp.series('elm')); }); gulp.task('server', function(done) { @@ -41,3 +40,5 @@ gulp.task('elm', function(cb) { }); counter++; }); + +gulp.task('default', gulp.series('server', 'watch', 'elm'));