packages from source files. This often leads to a tedious situation for
projects which use Jake, as the developer must continually run the
jsrebuild utility provides a solution to this problem: it watches a
source directory and rebuilds the project whenever changes are made to the
jake.yml config file and the
Jakefile helper file.
jsrebuild is available from RubyGems, so you can install it and its dependencies simply by running
gem install jsrebuild
To watch a particular directory such as
~/projects/mywebapp for changes, just
jsrebuild tool takes a number of command-line arguments, allowing you to
set options such as the interval at which it checks files for changes, and
whether or not to force all the project's packages to be rebuild whenever a
change is made.
For a full list of options, run
jsrebuild will happily run daemonised. To shut down the process, simply send
SIGHUP and it will shut down the event loop and exit cleanly.