Skip to content

Instantly share code, notes, and snippets.

@KinoAR

KinoAR/compile.hxml

Created Dec 1, 2020
Embed
What would you like to do?
A gist example of a haxe build file.
# Haxe Library
-lib LunaTea
-cp src
# JS Version
-D js-es=6
# Enable/Disable console.log -- tracing with the below line
# --no-traces
-dce full
# Static Code Analysis For Removing Unnecessary Code
-D analyzer-optimize
# Haxe Source Map
--debug
# --no-inline
# --no-opt
# -D keep_inline_positions
# RM Version for Conditional Compilation
# -D compileMV
# Note you can call an hxml file inside an hxml file for build purposes.
# For Compiling Separate JavaScript Files
# --macro macros.MacroTools.includeJsLib("./src/Params.js")
# --main Main
--each
--next
lunavn.hxml
--next
lunalog.hxml
--next
lunavnsave.hxml
--next
lunavnload.hxml
--cmd 'npx napkin'
--cmd haxe -D gamePath=../games/LunaTechsMZ --run CleanJs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment