indexzero/issues — pull request #1 by indexzero (2012-01-18 04:33:26+00:00)
Title: Refactor to use flatiron and flatiron.plugins.cli

I noticed that your application was using a number of modules that are a part of (flatiron)[http://github.com/flatiron], so I went ahead and refactored the application to use the flatiron CLI plugin.

#### Notable Changes

* Replaced `lib/dispatcher`.js with the flatiron CLI router powered by (director)[http://github.com/flatiron/director].
* Remove `lib/conf.js` with app.config (powered by nconf)
* Use optimist through `app.argv` options
* Use `ini` through `flatiron.formats`
* Use `flatiron.common.requireDirLazy()` instead of Redr (sorry, couldnt help myself)
* Moved `Makefile` into `package.json`
* Removed tests for `lib/dispatcher.js` since they are tests in flatiron core.

Let me know what you think!