mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-09-24 21:04:57 +00:00
Switch to gulp 4
This commit is contained in:
@@ -28,7 +28,7 @@ function gulptasksFTP($, gulp, buildFolder) {
|
||||
};
|
||||
|
||||
// Write the "commit.txt" file
|
||||
gulp.task("ftp.writeVersion", () => {
|
||||
gulp.task("ftp.writeVersion", cb => {
|
||||
fs.writeFileSync(
|
||||
path.join(buildFolder, "version.json"),
|
||||
JSON.stringify(
|
||||
@@ -41,6 +41,7 @@ function gulptasksFTP($, gulp, buildFolder) {
|
||||
4
|
||||
)
|
||||
);
|
||||
cb();
|
||||
});
|
||||
|
||||
const gameSrcGlobs = [
|
||||
@@ -78,13 +79,13 @@ function gulptasksFTP($, gulp, buildFolder) {
|
||||
.pipe($.sftp(deployCredentials));
|
||||
});
|
||||
|
||||
gulp.task(`ftp.upload.${deployEnv}`, cb => {
|
||||
$.sequence(
|
||||
gulp.task(`ftp.upload.${deployEnv}`, () => {
|
||||
return gulp.series(
|
||||
"ftp.writeVersion",
|
||||
`ftp.upload.${deployEnv}.game`,
|
||||
`ftp.upload.${deployEnv}.indexHtml`,
|
||||
`ftp.upload.${deployEnv}.additionalFiles`
|
||||
)(cb);
|
||||
);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user