0.0.1 • Published 9 years ago

haxeify v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

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