akdubya/dustjs — pull request #44 by dinedal (2011-12-23 22:16:31+00:00)
Title: Added a CLI that can compile .dust to .js as well as watch files and/or directories for changes and recompile

Code adapted from: https://raw.github.com/jashkenas/coffee-script/master/lib/coffee-script/command.js

I understand this introduces a dependency of optimist. If this is a problem I'm happy to remove it, but optimist is pretty light weight, and reinventing the argument parsing wheel is kinda boring.

More then willing to clean up this code and am open for comments, just let me know and I'll make the changes.

Dust really could use the feature of it's own CLI to encourage adoption.