mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
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:
@@ -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']));
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user