serafim / haxe-watcher
Haxe language watcher
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 0
Open Issues: 0
Type:composer-plugin
Requires
- php: >=7.4
- composer-plugin-api: ^1.1
- yosymfony/resource-watcher: ^2.0
Requires (Dev)
- composer/composer: ^1.9
This package is auto-updated.
Last update: 2020-08-14 22:24:32 UTC
README
Requirements
- PHP >= 7.4
- Haxe Compiler (for local development only)
- Composer
Installation
composer require serafim/haxe-watcher
Configuration
Configuration using extra
section in your composer.json
file:
{ "extra": { "haxe": { // Path to Haxe Compiler. // - Information from the PATH environment variable // is read by default ("haxe" binary). "compiler": "/usr/bin/haxe", // Path to source files. // - Information from the "autoload" (psr-0, psr-4, classmap) // section is read by default. "src": [ "path/to/sources" ], // Number of milliseconds to check file updates. // - 60000 by default "watch": 60000, // The name of the configuration file generated for // the Haxe Compiler. // - "build.hxml" by default "config": "test.hxml" } } }
Usage
Haxe Compiler Version
$ composer haxe:version
Run Haxe Watcher
$ composer haxe:watch
Example
Project Structure
- app/
- Main.hx
- composer.json
Instruction
- Create
composer.json
with following code
{ "require": { "serafim/haxe-watcher": "*" }, "autoload": { "psr-4": { "app": "app" } }, "minimum-stability": "dev", "prefer-stable": true }
- Create
app/Main.hx
with following code:
Main.hx File
module app; class Main { static function main() { Sys.println("test"); } }
- Run watcher:
composer haxe:watch