-
-
Notifications
You must be signed in to change notification settings - Fork 11
Prepare sections
Alexander Gordeyko edited this page Sep 8, 2018
·
3 revisions
That sections for prepare project for build with some libs and assets.
Libs can be downloaded or installed.
Example:
<haxelib>
<lib>LIBRARY_NAME</lib>
<!-- Pixi example: -->
<lib>pixijs 4.5.5</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>
<bmfont from="source_dir/" to="output_dir/">
<font output="result_font_file" face="font face" size="36" charset="abcdef">source_font.ttf</font>
</bmfont>
<texturepacker format="pixijs png" from="source_path/" clean="true">
<variant to="assets_packed/"/>
<variant to="assets_packed_small/" scale="0.5" datascale="1"/>
<path from="shared/" to="shared/">
<unit>
<output>output_file_name</output>
<input>file.png</input>
<input>folder/<input>
</unit>
<unit format="jpg" scale="0.6" quality="1" rotation="false">
<output>animation</output>
<input>animation/</input>
</unit>
</path>
</texturepacker>
<clean>
<dir>dir_for_clean</dir>
<unit>file_for_delete</unit>
</clean>
<copy from="source_path/" to="result_path/" filter=".png">
<dir>assets/</dir>
</copy>
<imagemin from="source_path/" to="result_path/" pngq="100" webpq="100" format="png webp">
<dir from="assets/" to="assets/"/>
</imagemin>
Command for run prepare module:
pony prepare