         src: ['fonts/*', 'img/*', 'views/**/*']
         dest: 'dist'
 
-    clean: ["dist", ".tmp"]
+    clean:
+      dist: ['main.js']
+      all: ["dist", ".tmp"]
 
     shell:
       git_tag:

        ext: '.js'
      dist:
        files:
          'dist/js/main.js': 'app/scripts/**/*.coffee'

    karma:
      options:


  grunt.registerTask 'copy_dev', ['copy:dev', 'copy:dev_less', 'copy:dev_coffee']
  grunt.registerTask 'compile_dev', ['coffee:dev', 'less:dev', 'htmlbuild:dev']
  grunt.registerTask 'compile_dist', ['coffee:dist', 'less:dist', 'uglify', 'htmlbuild:dist', 'clean:dist']
  grunt.registerTask 'dev', ['bower', 'copy_dev', 'compile_dev', 'connect:dev', 'watch']
  grunt.registerTask 'test', ['karma:dev']
  grunt.registerTask 'dist', ['bower', 'compile_dist', 'copy:dist']
