 path = require 'path'
 rm = require('rimraf').sync
 mkdir = require('wrench').mkdirSyncRecursive
-cp = require('wrench').copyDirSyncRecursive
 _ = require 'underscore'
 CSON = require 'season'
 


    mkdir APP_DIR

    fs.createReadStream('atom.sh').pipe(fs.createWriteStream(path.join(APP_DIR, 'atom.sh')))
    fs.createReadStream('package.json').pipe(fs.createWriteStream(path.join(APP_DIR, 'package.json')))

    directories = [
      'benchmark'

INSTALL_DIR = path.join('/Applications', APP_NAME)

module.exports = (grunt) ->
  cp = (source, destination) ->
    if fs.statSync(source).isDirectory()
      require('wrench').copyDirSyncRecursive(arguments...)
    else
      fs.writeFileSync(destination, fs.readFileSync(source))
    grunt.log.writeln("Copied #{source.cyan} to #{destination.cyan}.")

  grunt.initConfig
    pkg: grunt.file.readJSON('package.json')

