diff --git a/gulpfile.js b/gulpfile.js index fdbb9b367..ee91840d9 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -69,7 +69,7 @@ if (typeof DOMParser !== 'function') { } if (typeof module === 'object') { module.exports = Blockly; } if (typeof window === 'object') { window.Blockly = Blockly; }\n`)) - .pipe(gulp.dest('')); + .pipe(gulp.dest('.')); }); /** @@ -97,7 +97,7 @@ function buildWatchTaskFn(concatTask) { var options = { debounceDelay: 2000 // Milliseconds to delay rebuild. }; - gulp.watch(srcs, options, tasks); + gulp.watch(srcs, options, gulp.parallel(tasks)); }; } @@ -107,4 +107,4 @@ gulp.task('watch', buildWatchTaskFn('blockly_javascript_en')); // The default task concatenates files for Node.js, using English language // blocks and the JavaScript generator. -gulp.task('default', ['build', 'blockly_javascript_en']); +gulp.task('default', gulp.series(['build', 'blockly_javascript_en'])); diff --git a/package.json b/package.json index dc62e77d1..16f0060bf 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "eslint": "^5.13.0", "google-closure-compiler": "^20190121.0.0", "google-closure-library": "^20190121.0.0", - "gulp": "^3.9.1", + "gulp": "^4.0.0", "gulp-concat": "^2.6.1", "gulp-insert": "^0.5.0", "gulp-series": "^1.0.2",