Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fponticelli/livehaxe
Automatic compiler for Haxe and other tools. Monitors the files in a project and regen the output whenever it detects a change.
https://github.com/fponticelli/livehaxe
Last synced: 15 days ago
JSON representation
Automatic compiler for Haxe and other tools. Monitors the files in a project and regen the output whenever it detects a change.
- Host: GitHub
- URL: https://github.com/fponticelli/livehaxe
- Owner: fponticelli
- Created: 2013-03-19T01:44:08.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-19T07:39:05.000Z (over 9 years ago)
- Last Synced: 2023-03-12T23:50:59.758Z (over 1 year ago)
- Language: Haxe
- Size: 197 KB
- Stars: 44
- Watchers: 8
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
livehaxe
========Automatic compiler for Haxe and other tools. Monitors the files in your project and regen the output whenever it detects a change.
Currently tested on Ubuntu and OSX, not tested on Windows.
### Installation
haxelib install livehaxe
### Compiling Haxe
To launch livehaxe just execute the following command from your terminal (not tested on Windows):
haxelib run livehaxe -haxe build.hxml
Livehaxe will start the haxe compiler in server mode, scan all the ``-cp`` contained in your hxml and update your build whenever one of the ``.hx`` files in your project is modified.
### Compiling Less
Livehaxe can also be used to compile LESS files, just add:
-less src.less dst.css
### Notes
If you would like to display a replacement page, you can add
-errorpage out/index.html
This will place a HTML file in "out/index.html" while the build is running, which will refresh automatically until the build is finished.
If the build fails, it will update the html file with a list of errors.
If the build succeeds, the html page will be removed.Multiple hxml and LESS files can be monitored at once.