upgrade gulp to v4

As of NodeJS v12, gulp v3 fails to run at all. This small change
should allow for future compatibility with NodeJS.
This commit is contained in:
Nicholas Cioli
2019-06-21 17:43:21 -05:00
parent 492d0719d6
commit a5717fb333
2 changed files with 4 additions and 4 deletions

View File

@@ -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']));

View File

@@ -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",