1
0
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:
Ivan Demchuk
2020-06-13 18:59:25 +03:00
parent 2367d787a0
commit 506193b8c8
11 changed files with 970 additions and 1169 deletions

View File

@@ -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);
);
});
}
}