+{exec} = require 'child_process'
 fs = require 'fs'
+mkdirp = require 'mkdirp'
 path = require 'path'
-mkdirp = require 'mkdirp'
 filewriter = require './filewriter'
 helpers = require './helpers'
 testrunner = require './testrunner'
-
-exports.VERSION = require('./package').version
 
 # Recompiles all files in current working directory.
 # 

    callback result

exports.new = (rootPath, buildPath, callback = (->)) ->
  templatePath = path.join __dirname, '..', 'template', 'base'
  path.exists rootPath, (exists) ->
    if exists
      return helpers.logError "[Brunch]: can\'t create project: 

         helpers.recursiveCopy templatePath, rootPath, ->
           helpers.log '[Brunch]: created brunch directory layout'
           helpers.log '[Brunch]: installing npm packages...'
           exec "npm install #{rootPath}", (error, stderr, stdout) ->
             if error?
               helpers.logError "[Brunch]: npm error: #{stderr}"
               return callback()
             helpers.log '[Brunch]: installed npm package brunch-extensions'
             callback()

exports.build = (config, callback = (->)) ->
