An awesome mix between Haxe and Ruby. Raxe is open source, cross-platform and compiles to Haxe without any performance penatly and runtime library.
To install Raxe you can use haxelib
haxelib git raxe https://github.com/nondev/raxe.git
You'll need mcli hscript libraries installed:
haxelib install mcli
haxelib install hscript
Now, compile the project with haxe build.hxml
A binary run.n
will be available
# Command line tool
If you installed the library with haxelib:
haxelib run raxe
On development :
neko run
haxelib run raxe -s <raxe filename or directory> [-d <filename or directory>]
Arguments:
-s or --src
the source filename (raxe) or directory-d or --dest
destination for the haxe file(s) generated. If omitted and src is a file, the dest will be the same filename in .hx. If omitted and src is a directory, the hx files will be generated in the same directory as raxe files.
Example : haxelib run raxe -s examples/ -d dist/
Will transpile all raxe files from examples to dist directory. Non raxe files will be just copy/paste to the new directory
If you want to automatically transpile modified raxe files, you can add argument -w or --watch
. It will create an endless loop that will watch your files.
Example : haxelib run raxe -s examples/ -d dist/ -w
If also want to copy other files other than raxe files, you can add the option -a or --all
. So, if you have an image inside your raxe directories, it will be copied by the transpiler (by default, it's skipped).