Skip to content

Scripts to watch Pony projects and trigger rebuilds and runs.

License

Notifications You must be signed in to change notification settings

sgebbie/pony-watcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Scripts to watch Pony projects and trigger rebuilds and runs.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages