Skip to content
/ jans Public

Tiny language agnostic tool to autocompile on file change

License

Notifications You must be signed in to change notification settings

xytp/jans

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Tiny language agnostic tool to autocompile on file change

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages