These simple scripts can be used to watch for changes to .pony
files and
trigger builds and runs of the Pony programs.
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.
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
...
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