pony 0.4.5

Haxe open-cross-library

Released 2017-07-31.

To install, run:

haxelib install pony 0.4.5

See using Haxelib in Haxelib documentation for more information.

MaintainerAxGord
Websitehttps://github.com/AxGord/Pony
Current version0.4.5
StatisticsInstalled 328 times
LicenseBSD
Tags cross, cs, flash, nodejs, openfl, php, pixi, pixijs, tools, unity, unity3d, utils

README.md

Lang License Haxelib Build status

Installation

Stable version

haxelib install pony

Unstable version

haxelib git pony https://github.com/AxGord/Pony

Pony Tools

Supported OS: Windows and Mac OS

Installation

haxelib run pony

Create project file

cd PROJECT_PATH
pony create PROJECT_NAME

Then open pony.xml in editor

Prepare sections

<haxelib>
    <lib>LIBRARY_NAME</lib>
</haxelib>

<download path="DOWNLOADS_PATH/">
    <unit url="DOWNLOAD_URL" />
    <unit
        url="DOWNLOAD_URL_PART{v}DOWNLOAD_URL_PART"
        v="VERSION" check="STABLE_FILE_DATA{v}STABLE_FILE_DATA" />
    <!-- Pixi example: -->
    <unit
        url="https://pixijs.download/v{v}/pixi.min.js"
        check="pixi.js - v{v}" v="4.5.3" />
</download>

<poeditor>
    <token>TOKEN</token>
    <id>ID</id>
    <path>PATH_TO_JSON_FILES</path>
    <list>
        <FILE_NAME>LANG_ID</FILE_NAME/>
    </list>
</poeditor>

Prepare run command:

pony prepare

Build sections

<build>
    <ANY_HAXE_OPTION>VALUE</ANY_HAXE_OPTION>
    <d name="FLAG_NAME">FLAG_VALUE</d>
    <apps>
        <BUILD_NAME>
            <ANY_HAXE_OPTION>VALUE</ANY_HAXE_OPTION>
        </BUILD_NAME>
        <BUILD_NAME>
            <ANY_HAXE_OPTION>VALUE</ANY_HAXE_OPTION>
        </BUILD_NAME>
    </apps>
    <release>
        <ANY_HAXE_OPTION>VALUE</ANY_HAXE_OPTION>
    </release>
    <debug>
        <ANY_HAXE_OPTION>VALUE</ANY_HAXE_OPTION>
    </debug>
</build>

<uglify>
    <release><c/><m/></release>
    <debug>
        <input>jslib/stacktrace.min.js</input>
        <sourcemap>
            <input>HAXE_OUTPUT_PATH/HAXE_OUTPUT_FILE.js.map</input>
            <output>OUTPUT_PATH/OUTPUT_FILE.js.map</output>
            <url>OUTPUT_FILE.js.map</url>
            <source>OUTPUT_FILE.js</source>
        </sourcemap>
    </debug>
    <input>ANY_JS_LIBRARY</input>
    <input>HAXE_OUTPUT_PATH/HAXE_OUTPUT_FILE.js</input>
    <output>OUTPUT_PATH/OUTPUT_FILE.js</output>
    <apps><!-- See build section --></apps>
</uglify>

<wrapper>
    <file>FILE</file>
    <pre>FILE_CONTENT_PREFIX</pre>
    <post>FILE_COUNTENT_POSTFIX</pre>
</wrapper>

Build commands:

pony build
pony build PROJECT_NAME
pony build debug
pony build PROJECT_NAME debug
pony build PROJECT_NAME release

Post build sections

<zip>
    <compress>COMPRESS_LEVEL_1_9</compress>
    <prefix>PREFIX_TO_COMPRESS_FOLDER</prefix>
    <input>ANY_FILE</input>
    <input>ANY_FOLDER/</input>
    <output>ARCHIVE_FILE_NAME.zip</output>
    <apps><!-- See build section --></apps>
    <debug><!-- ... --></debug>
    <release><!-- ... --></release>
</zip>

Zip commands:

pony zip
pony zip PROJECT_NAME
pony zip debug
pony zip PROJECT_NAME debug
pony zip PROJECT_NAME release
<ftp path="PATH_FOR_UPLOADS/">
    <host>HOST</host>
    <user>USERNAME</user>
    <pass>PASSWORD</pass>
    <output>SERVER_FOLDER</output>
    <input>FILE_FOR_UPLOAD</input>
    <input>FOLDER_FOR_UPLOAD</input>
    <apps><!-- See build section --></apps>
    <debug><!-- ... --></debug>
    <release><!-- ... --></release>
</ftp>

Ftp commands:

pony ftp
pony ftp PROJECT_NAME
pony ftp debug
pony ftp PROJECT_NAME debug
pony ftp PROJECT_NAME release

Pony good with

Sometimes need npm

Manual

Reference book

Explore more feature