build(npm): update gulp-haxetool

This commit is contained in:
2026-05-20 00:05:30 +03:00
parent e41d461ba6
commit 9e67513897
3 changed files with 13742 additions and 13595 deletions

View File

@@ -4,8 +4,11 @@ const Config = require("./config.json");
const packageInfo = require("./package.json"); const packageInfo = require("./package.json");
const { System, Sdk, Haxe, Project } = require("gulp-haxetool"); const { System, Sdk, Haxe, Project } = require("gulp-haxetool");
const dateformat = require("dateformat"); const dateformat = require("dateformat");
const argv = require("yargs").argv;
const publish = require("./tasks/gulp-publish"); const publish = require("./tasks/gulp-publish");
Project.useRuffle();
if (packageInfo.haxe) { if (packageInfo.haxe) {
Haxe.VERSION = packageInfo.haxe; Haxe.VERSION = packageInfo.haxe;
} }
@@ -63,6 +66,9 @@ const config = new Project.Config({
flags: ["proto_debug"], flags: ["proto_debug"],
}); });
const host = argv.host || "localhost";
const port = argv.port || 5000;
const app = new Project( const app = new Project(
Project.BuildSystem.OPENFL, Project.BuildSystem.OPENFL,
[ [
@@ -87,6 +93,10 @@ const app = new Project(
width: 1280, width: 1280,
height: 768, height: 768,
}, },
macros: [
`CompilationOption.set('host','${host}')`,
`CompilationOption.set('port',${port})`,
],
flags: ["app"], flags: ["app"],
}), }),
).bind(module, gulp); ).bind(module, gulp);

27325
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -9,7 +9,7 @@
"gulp-add": "0.0.2", "gulp-add": "0.0.2",
"gulp-clean": "^0.4.0", "gulp-clean": "^0.4.0",
"gulp-cli": "^2.2.0", "gulp-cli": "^2.2.0",
"gulp-haxetool": "^0.1.9", "gulp-haxetool": "^0.2.1",
"yargs": "^13.2.4" "yargs": "^13.2.4"
}, },
"haxeDependencies": { "haxeDependencies": {