ci(pm): add project-manager preset

This commit is contained in:
2026-10-02 15:56:03 +03:00
parent acf0706bef
commit 5b9c3655d1
15 changed files with 53 additions and 78 deletions
+6 -3
View File
@@ -5,17 +5,20 @@ const packageInfo = require("./package.json");
const { System, Sdk, Haxe, Project } = require("gulp-haxetool");
const dateformat = require("dateformat");
const publish = require("./tasks/gulp-publish");
const os = require("os");
const resolvePath = (path) => path.replace("$HOME", os.homedir());
if (packageInfo.haxe) {
Haxe.VERSION = packageInfo.haxe;
}
if (Config.SdkDir) {
Sdk.dir = Config.SdkDir;
Sdk.dir = resolvePath(Config.SdkDir);
}
if (Config.BuildDir) {
Haxe.buildDir = Config.BuildDir;
Haxe.buildDir = resolvePath(Config.BuildDir);
}
exports.clean = function clean() {
@@ -104,7 +107,7 @@ const server = new Project(
module.exports.publish = publish(
packageInfo.name,
packageInfo.version,
Config.PublishDir,
resolvePath(Config.PublishDir),
Config.PublishUrl,
);