haxeify
v0.0.1
Published
Browserify transform to compile Haxe
Downloads
4
Maintainers
Readme
haxeify
Browserify transform to compile Haxe.
Installation
With npm:
$ npm install haxeify --save-dev
Usage
foo.js:
var bar = require('./Bar.hx');
console.log(bar.Bar.baz()); // => 'qux'
Bar.hx:
package ;
class Bar {
@:expose
static public function baz():String {
return 'qux';
}
}
To compile:
$ browserify -t haxeify foo.js > bundle.js
You can use haxelib by giving --lib
options:
$ browserify -t [ haxeify --lib foo --lib bar --lib baz ] qux.js > bundle.js