     
     # Copies remaining files to places other tasks can use
     copy:
+      coffee:
+        files: [
+          expand: true,
+          dot: true,
+          cwd: '<%= yeoman.app %>/scripts',
+          dest: '.tmp/scripts',
+          src: '**/*.coffee'
+        ]
+
       dist:
         files: [
           expand: true

    
    # Run some tasks in parallel to speed up build process
    concurrent:
      server: ["compass:server", "coffee:dist", "copy:styles"]
      test: ["coffee", "copy:styles"]
      dist: ["coffee", "compass", "copy:styles", "imagemin", "svgmin"]

  grunt.registerTask "serve", (target) ->
    return grunt.task.run(["build", "connect:dist:keepalive"])  if target is "dist"

    watch:
      coffee:
        files: ["<%= yeoman.app %>/scripts/{,*/}*.{coffee,litcoffee,coffee.md}"]
        tasks: ["copy:coffee", "coffee:dist"]

      coffeeTest:
        files: ["test/spec/{,*/}*.{coffee,litcoffee,coffee.md}"]
