Skip to content

Instantly share code, notes, and snippets.

@KinoAR
Created December 1, 2020 00:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KinoAR/9a29448e6e964ebc3187bc84bfb0043e to your computer and use it in GitHub Desktop.
Save KinoAR/9a29448e6e964ebc3187bc84bfb0043e to your computer and use it in GitHub Desktop.
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