Coffeescript 使用grunt contrib咖啡的目标

Coffeescript 使用grunt contrib咖啡的目标,coffeescript,gruntjs,grunt-contrib-coffee,Coffeescript,Gruntjs,Grunt Contrib Coffee,我在一个AngularJS项目中使用,我试图根据grunt的目标设置配置选项。我有以下配置文件(使用): 但是当我使用grunt coffee:stage执行任务时,不会复制任何文件。有什么想法吗 Running "coffee:stage" (coffee) task >> 0 files created. Done, without errors. 谢谢 正确配置grunt config coffee需要从coffee开始,然后像您的情况一样,使用特定配置(使用stage而不

我在一个AngularJS项目中使用,我试图根据grunt的目标设置配置选项。我有以下配置文件(使用):

但是当我使用
grunt coffee:stage执行任务时,不会复制任何文件。有什么想法吗

Running "coffee:stage" (coffee) task
>> 0 files created.

Done, without errors.

谢谢

正确配置
grunt config coffee
需要从
coffee
开始,然后像您的情况一样,使用特定配置(使用
stage
而不是
glob\u to\u multiple
):


您是否确保配置文件的名称正确?在这种情况下,
coffee.js
?有没有遇到过这种情况?是的,名称正确。我仍然收到一个错误:运行“coffee:stage”(coffee)任务验证属性coffee.stage是否存在于配置中…错误>>无法处理任务。警告:缺少必需的配置属性“coffee.stage”。使用--force继续。由于警告而中止。
Running "coffee:stage" (coffee) task
>> 0 files created.

Done, without errors.
module.exports = function(grunt) {
  return {
    coffee: {
      stage: {
          expand: true,
          nonull: true,
          cwd: 'src/js/',
          src: ['*.coffee', 'config/stage.coffee'],
          dest: '.tmp/js/',
          ext: '.js'
      }
    }
  };
};