 brk = (s)->
   s.split ' '
 
-exports.resolve = 
+@resolve =
   extensions: brk " .js .coffee .litcoffee .coffee.md .cmds"
 
-exports.resolveLoader = 
+@resolveLoader =
   alias:
     cmds: require.resolve './cmds'
 

webpack = require 'webpack'
cmdize = require './cmdize'

exports.entry = 
  cli: "./src"
  setup: "./src/setup"

exports.output = 
  path: "tmp",
  filename: "[name].js"

values = (map)->
  v for k, v of map

exports.module = 
  loaders: values
    coffee:
      test: /[.]coffee$/

        v
  res

@plugins = values
  cmdize: new cmdize
  defines: new webpack.DefinePlugin
    PACKAGE: stringify require '../package'
