conquer
conquer will run Node or Coffee while monitoring the code and/or configuration file(s) for changes. When a change occures or when the program crashes it is automatically restarted. This allowes for realtime development and rapid prototyping.
As of version 1.0.4 conquer can run any program when a file changes, allowing it to be used in more scenarios. For instance to run Stylus when a .styl file changes.
Installation
$ [sudo] npm install -g conquer
Usage
Usage: conquer.js [-ewras] [-x|-c] <script> [script args ...] Options: -h, --help output usage information -V, --version output the version number -e, --extensions <list> a list of extensions to watch
WebSocket
conquer features a built-in WebSocket server that will notify listening browsers of changes. This allowes browsers to automatically refresh their page when a stylesheet or HTML file is changes.
To start a WebSocket server on port 81, that watches and compiles style files, use
$ conquer -s 81 -e .styl -c stylus.cmd -o css
The following JavaScript can be inserted into the HTML to refresh the page when a styl file changes
License (MIT)
Copyright (c) 2012, wronex.