           {
             expand: true
             ext: '.js'
-            cwd: 'coffee'
+            cwd: coffeeDirectory
             src: ['**/*.coffee']
-            dest: 'lib'
+            dest: coffeeOutputDirectory
           }
         ]
 
     clean:
-      lib: 'lib'
+      lib: coffeeOutputDirectory
 
     simplemocha:
       options:

        reporter: 'spec'
        compilers: 'coffee:coffee-script'
      all:
        src: 'test/**/*.coffee'

    watch:
      coffee:
        files: 'coffee/**/*.coffee',
        tasks: ['coffee']
      test:
        files: ['**/*.coffee'],

coffeeDirectory = 'coffee'
coffeeOutputDirectory = 'lib'
testDirectory = 'test'

module.exports = (grunt) ->
  pkg = grunt.file.readJSON 'package.json'
  for t of pkg.devDependencies
