Gruntjs Grunt复制错误-否“;“复制”;找到目标

Gruntjs Grunt复制错误-否“;“复制”;找到目标,gruntjs,Gruntjs,我的Grunfile.coffee中有以下内容: copy: { main: { expand: true, cwd: 'js/no-concat/', src: '**', dest: 'deploy/public_html/assets/javascripts/', flatten: true, filter: 'isFile', } } 当我从命令

我的Grunfile.coffee中有以下内容:

copy: {
        main: {
        expand: true,
        cwd: 'js/no-concat/',
        src: '**',
        dest: 'deploy/public_html/assets/javascripts/',
        flatten: true,
        filter: 'isFile',

        }
      }
当我从命令行运行“grunt copy”来测试它时,它会说:

未找到“复制”目标。警告:任务“复制”失败。使用--force继续

我试过阳光下的每一种变化,但都无济于事


请帮助:-/

以上内容不是有效的咖啡脚本。试试这个:

module.exports = (grunt)->
  grunt.initConfig

    copy:
      main:
        expand: true
        cwd: 'js/no-concat/'
        src: '**'
        dest: 'deploy/public_html/assets/javascripts/'
        flatten: true
        filter: 'isFile'

你知道,我发誓我试过那种语法风格。我想我一定是在什么地方有严重的凹痕!谢谢你,本,真的很感激!!