Gears is a library to compile, concatenate and minify JavaScript and CSS assets, highly inspired by Ruby’s Sprockets. It includes support for writing scripts, styles and client templates using CoffeeScript, Handlebars, Stylus, Less, SASS and SCSS. New compilers can be also easily added.
There is also:
Gears code is hosted on GitHub: https://github.com/gears/gears.