shmyga 2605c1bbc8
test / test (push) Failing after 5m32s
refactor(preset): rework preset
2026-10-29 20:35:53 +03:00
2026-10-29 20:35:53 +03:00
2026-10-29 20:35:53 +03:00
2026-10-29 20:35:53 +03:00
2026-10-29 20:35:53 +03:00
2026-10-29 20:35:53 +03:00
2026-10-10 16:17:28 +03:00
2026-10-25 14:11:32 +03:00
2026-05-15 22:27:22 +03:00
2026-10-29 20:35:53 +03:00
2026-10-29 01:17:27 +03:00
2026-10-22 23:18:06 +03:00

Gulp HaXe Tool

test

Introducing

Dignity

  • Automatically download HaXe SDK, Neko, FlashPlayer (or RufflePlayer), Android SDK.
  • Universal project config for simple HaXe build and OpenFL build.
  • Branch project config for many build presets (many OpenFL apps in one project).
  • Packaging linux output in DEB.
  • Packaging windows output in exe install with InnoSetup.
  • Create html wrapper for flash output.

Flaws

  • Hardcode build output in {projectDir}/target (need param in Project.Config).
  • HTML5 run output not caught.
  • Adobe AIR Build System in progress.
  • Windows target depends Visual Studio 2017 build tools

Example

Example project

package.json

{
  "name": "example",
  "type": "module",
  "version": "0.0.1",
  "scripts": {
    "tasks": "hxt",
    "build": "hxt default",
    "dev": "hxt app:flash:test"
  },
  "devDependencies": {
    "gulp-haxetool": "^1.2.0"
  }
}

haxetool.json

JSON schema: https://shmyga.ru/public/haxetool.schema.json

{
  "app": {
    "buildSystem": "openfl",
    "platforms": ["flash", "html5", "linux", "windows", "android"],
    "config": {
      "meta": {
        "title": "Example",
        "filename": "example",
        "icon": "./resources/icon.jpg",
        "pack": "com.example",
        "author": "Anonim <anonim@anonim.com>",
        "company": "Any company"
      },
      "libs": {
        "lime": "8.3.2",
        "openfl": "9.5.2",
        "hxcpp": "4.3.2"
      },
      "sources": ["src"],
      "main": "Main"
    }
  }
}

Commands

Display tasks list

npx hxt

Build and pack all presets platform variants

Results places in target directory

npx hxt default

Build and run platform target

npx hxt <preset>:<platform>:test
npx hxt app:flash:test
npx hxt app:html5:test
npx hxt app:linux:test
npx hxt app:android:test
npx hxt app:windows:test

VS Code settings

JSON schema for haxetool.json

{
  ...
  "json.schemas": [
    {
      "fileMatch": [
        "/haxetool.json"
      ],
      "url": "https://shmyga.ru/public/haxetool.schema.json"
    }
  ],
  "json.schemaDownload.trustedDomains": {
    "https://shmyga.ru/": true
  },
  ...
}
S
Description
Tool for simple building and pack HaXe and OpenFl project
Readme
799 KiB
Languages
TypeScript 90.9%
JavaScript 7.4%
HTML 0.7%
Inno Setup 0.7%
Haxe 0.3%