Files
gulp-haxetool/README.md
T
shmyga dfad6d3aba
test / test (push) Successful in 35s
docs: update README
2026-10-31 15:50:42 +03:00

1.8 KiB

HaXeTool

test

Introducing

Tool for simple building and pack HaXe and OpenFl project

OpenFL 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"],
    "libs": {
      "lime": "8.3.2",
      "openfl": "9.5.2",
      "hxcpp": "4.2.1"
    },
    "sources": ["src"],
    "main": "Main"
  }
}

Commands

Display tasks list

npx hxt

Build and pack all 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

Dependencies requiring manual installation

Windows

  • Visual Studio 2017 build tools

Android

  • Java JDK 17

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
  },
  ...
}