Haxe Code Cookbook

libraries

Overview of Haxe code snippets, examples and tutorials tagged with libraries.

  • Jan 11, 2018 Compilation /

     libraries javascript dead-code-elimination

    In most cases, you want a Main class with a static main function as entry point to start your program. However, there are cases where there is no need for this - for example if you are writing a library that other programs will be using. ‥

  • Jan 11, 2018 JavaScript /

     javascript dead-code-elimination libraries

    Normally, when compiling Haxe to JavaScript, the resulting code is kept away from the global scope. This means that you can't reach the Haxe generated code from other scripts. To make that possible, there's the @:expose metadata that can be used on a class. This makes the class exposed to the global scope, and therefore possible to use in plain JavaScript.‥

  • Jul 17, 2018 Other /

     haxelib github travis libraries git

    This tutorial will help you publish your library automatically to lib.haxe.org when you create a release on GitHub.‥