Haxe-watchify: automatic build tool for Haxe and OpenFL projects
I’ve started recently working in a new company very focused on cross platform projects with Haxe. In my commuting time I worked on an automatic build tool for Haxe and OpenFL projects. The tool is called haxe-watchify and with a sample JSON file or directly through the command line, you’ll be able to setup how to continuously build your project in background during your development flow. Haxe-watchify has got interesting features in particular for the Haxe target like the possibility to setup the completion server instead the traditional compiler to speed up the building of your projects. In fact the completion server implements a cache system to build faster your projects, in this case haxe-watchify takes care for you to start the server and communicate with it.
Currently I’ve published the tool on npm registry so in order to install it just type in your CLI:
npm install haxe-watchify -g
I wrote an extensive documentation on how to use the tool on the readme file on the project repository otherwise you can check the –help command directly on your terminal window. I tried for now only on Mac OS X so if you find any bug in any other platforms please let me know
I’ve already thought few possible implementations to add in the next releases like a pre and post build in order to launch your tests or run static analysis tool or assets optimisation and then move to the build. Anyway I’m very keen to learn more about your current projects workflow and how haxe-watchify could help you to improve your situation.
if you want to share any comment please do feel free to share adding a comment to this post or via email
Originally published at lucamezzalira.com on July 3, 2015.