Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benmerckx/watch
Rebuilds haxe projects on source file changes
https://github.com/benmerckx/watch
haxe
Last synced: 20 days ago
JSON representation
Rebuilds haxe projects on source file changes
- Host: GitHub
- URL: https://github.com/benmerckx/watch
- Owner: benmerckx
- Created: 2021-07-27T14:04:24.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-11-26T08:55:39.000Z (about 1 month ago)
- Last Synced: 2024-11-26T09:34:04.980Z (about 1 month ago)
- Topics: haxe
- Language: Haxe
- Homepage:
- Size: 46.9 KB
- Stars: 10
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# watch
Creates a completion server and rebuilds the project on source file changes.
Requires Haxe 4.2+## Usage
lix +lib watchAppend 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 # (requires lix 15.11+)### Defines
All of these are optional.
| Define | Description |
| --------------------------- | ------------------------------------------------------------------------------------------- |
| `-D watch.run=(string)` | command to execute on successful builds |
| `-D watch.port=(integer)` | use this port for the completion server |
| `-D watch.connect` | connect to a running completion server (use with `watch.port`) |
| `-D watch.excludeRoot` | exclude watching the root directory (see [#3](https://github.com/benmerckx/watch/issues/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.verbose` | extra log before and after every build |### 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"
```