         compile_config()
 
     if target is 'coffeeFileDeleted'
-      grunt.config('clean.files', compiled_file)
+      grunt.config('clean.tmp', compiled_file)
       compile_config() if (/^test\/spec\//).test relative_path
 
     grunt.config("#{coffee_task}.src", coffee_files)

    grunt.task.run('git-describe')

  grunt.registerTask "initCustomSinon", ["concat:initCustomSinon"]

  grunt.registerTask "default", ["clean", "build", "mocha"]
  grunt.registerTask "compile", ["clean", "coffee", "copy", "initCustomSinon"]
  grunt.registerTask "build", ["compile", "requirejs", "wrap:dist", "usebanner"]

  grunt.registerTask "start", ["compile", "amdwrap:compile", "wrap:test", "process", "watch"]
  grunt.registerTask "start:browser", ["connect:development", "start"]

  grunt.registerTask "test", ["compile", "amdwrap:compile", "mocha"]

          event: ['added', 'changed']
      coffeeFileDeleted:
        files: "**/*.coffee"
        tasks: ["clean:tmp", "coffee", "process", "mocha"]
        options:
          event: ['deleted']

