 # Export commands and other API stuff for in-Node use.
 module.exports =
   commands: commands
+  middleware: middleware
   run: run
   version: ver

  else
    console.log "Don't know how to \"#{args[0]}\"."

# Add command description.
build.info   = 'Compile CoffeScript source for enabled targets.'
clean.info   = 'Remove generated directories and tidy things up.'

          fn?()

# Use Stitch to create a browser bundle.
bundle = (info, fn) ->
  paths = (fs.realpathSync path for path in info.browser.paths)
  stitch
    .createPackage
