https://github.com/rblsb/haxe-dev-server
https://github.com/rblsb/haxe-dev-server
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rblsb/haxe-dev-server
- Owner: RblSb
- Created: 2025-10-22T22:33:50.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2025-10-23T19:59:03.000Z (8 months ago)
- Last Synced: 2025-10-23T21:35:53.383Z (8 months ago)
- Language: JavaScript
- Size: 14.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# haxe-dev-server
Haxe dev http server. Recompiles code and reloads html page on Haxe code changes.
Uses haxe compilation server and `chokidar` file watcher with `ws` websocket server for live-reload.
## Installation
`npm i -g https://github.com/RblSb/haxe-dev-server`
## Example:
```
haxe-dev-server --hxml build.hxml --watch src --serve build --port 8080
```
## Multiple serve directories (as fallbacks)
```
haxe-dev-server -s build -s custom
```
Requests are checked in order:
- /index.html -> build/index.html, then custom/index.html
- /foo/bar.js -> build/foo/bar.js, then custom/foo/bar.js
## Options
```
--hxml, -h hxml file for compilation server (default: build.hxml)
--watch, -w Source directory to watch (default: src)
--serve, -s Output directory to serve (default: build)
--port, -p HTTP server port (default: 8080)
--ws-port WebSocket port for live reload (default: 8081)
--haxe-path Path to haxe executable (default: haxe)
--server-port Haxe compilation server port (default: 7000)
--verbose Print more logs
--help Show this help message
```