jans

Tiny language agnostic tool to autocompile on file change.
https://github.com/xytp/jans

To install, run:

haxelib install jans 0.2.0 

See using Haxelib in Haxelib documentation for more information.

README.md

Jans

Description

Jans is a tiny language-agnostic tool to automate compilation. Feed it with a json structure to describe your project and it will compile it automatically when it sees a change. Change detection of a file is based on the last modification date, so saving with no changes also counts.

How to use

First, type the command jans --init that will create a json file named jans.config.json with a content like this:

{
	"rules": [
		{
			"name": "the rule name",
			"path": "the path to check",
			"excludes": ["file to exclude 1", "directory to exclude 1"],
			"extensions": [
				"your file extension 1",
				"your file extension 2"
			],
			"command": [
				"your command",
				"your command parameter 1",
				"your command parameter 2"
			]
		}
	],
	"delay": 1
}

Then change it depending of your project requirements. you can have as much rules as you want. The delay parameter sets the sleep time between each check, in seconds.

Then jans --run your-config.json.

Alternatively, you can run jans through haxelib like this.

haxelib install jans
haxelib run jans --init #to init your config
haxelib run jans --run your-config.json #to run your compilation

With no config file provided, jans will try to open jans.config.json in the current directory.

Jans is complied with the use of jans itself, so if you have haxe, you can try it on this repo alone.

How to build

`haxe cpp.hxml`

Contributors
HellperKK
Version
0.2.0
Published
1 year ago
Dependencies
License
Public

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