Skip to content

Latest commit

 

History

History
61 lines (47 loc) · 1.18 KB

README.md

File metadata and controls

61 lines (47 loc) · 1.18 KB

Pony Watcher Scripts

These simple scripts can be used to watch for changes to .pony files and trigger builds and runs of the Pony programs.

Basic Usage

Terminal A:

cd path/to/pony/code
./path/to/pony-watcher/bin/wpony

Terminal B:

cd path/to/pony/code
./path/to/pony-watcher/bin/wprog

Terminal C:

cd path/to/pony/code
cat <<-EOF
	actor Main
		new create(env: Env) =>
			env.out.print("Hello World!")
EOF

This will result in the "hello world" Pony program being build and executed.

Configuration

Paths

In order to add paths that are watched for .pony files they can either be added to the command line:

cd path/to/pony/code
./path/to/pony-watcher/bin/wprog my/extra/path my/other/extra/path

Or, a wpony.paths script can be extended with path lines:

...
LIST+=/my/extra/path
LIST+=./my/other/extra/path
...

Optimisation

ponyc optimisation can take a while to complete and is not always necessary during the iterative development cycle. So, it can be useful to have the optimisation turned off, simply include -d or --no-optimise:

cd path/to/pony/code
./path/to/pony-watcher/bin/wpony -d