Scone (Stylus, CoffeScript On node.js) makes developing node.js apps that use coffeescript and stylus easier. Scone is a development server monitor much like nodemon, but trusting convention over configuration it provides a merged view of the node webserver console, the coffee watch console, and the stylus watch console. Giving the dev one console to rule them all.
When you make a change to either .coffee files or .styl files they will be compiled and output immediately. Scone then watches the .js files in your node app for these changes and will restart the web server when they happen. Stylus compiles .css files to /public/css these compiles WILL NOT cause the web-server to restart, but you will see a "compiled path/to/file" message in the console. It's only css so... you just need to refresh the page, and maybe clear your cache.
In order to accomplish all these amazing feats Scone expects a few conventions to be followed. (These conventions are still very much, subject to change, so... for now...)
- Your .coffee files are to stored in a ./coffee directory in the root of your app, and the resulting .js files are output to the root of your app ./.
- Your .styl files are kept in a /views/stylus directory and compiled to /public/css.
- Your main application file is called app.js
npm install scone
In the root of your app do:
scone
Scone can be installed in your app as a standalone script.
git clone git://github.com/InkSpeck/scone.git
cd scone
Compile scone.js
coffee -c scone.coffee
Place scone.js in the root of your app and run it with node.
node scone.js
Install from source
Make it executable
Rename scone.js to just scone
chmod +x scone
Place in bin
sudo mv scone /usr/local/bin
- node & npm, of course.
- coffee-script
- stylus
Licensed under the terms of MIT License. For the full copyright and license information, please see the LICENSE file in the root folder.