watch

Rebuilds haxe projects on source file changes
https://github.com/benmerckx/watch

To install, run:

haxelib install watch 0.1.0 

See using Haxelib in Haxelib documentation for more information.

README.md

watch

Creates a completion server and rebuilds the project on source file changes.

Usage

lix +lib watch

Append the library to the haxe build command:

haxe build.hxml -lib watch

Important: Do not add this library to any hxml or config read by your IDE, autocompletion will not function.

Alternatively, just run it:

lix watch build.hxml

Defines

All of these are optional.

DefineDescription
-D watch.run=(string)command to execute on successful builds
-D watch.port=(integer)use this port for the completion server
-D watch.connectconnect to a running completion server (use with watch.port)
-D watch.excludeRootexclude watching the root directory (see #3)
-D watch.exclude=(string)exclude this path from the watcher (can be repeated for multiple paths)
-D watch.include=(string)include this path in the watcher (can be repeated for multiple paths)
-D watch.verboseextra log before and after every build
-D watch.extensions=(string)extensions to watch, seperated by comma but without dot prefix (will watch '.hx files per default)

Example

Compiles test.js and runs the scripts with node on successful builds.

haxe --main Main --library hxnodejs --js test.js --library watch -D watch.run="node test.js"
Contributors
benmerckx
Version
0.1.0
Published
1 year ago
License
MIT

All libraries are free

Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on GitHub!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on GitHub