我正在使用grunt-contrib-coffee v.0.7.0 和 grunt v0.4.1。
我在 Gruntfile.coffee 中声明了我的咖啡脚本任务,如下所示:
coffee:
dev:
'asd.js': 'asd.coffee'
在同一个目录中,我有 asd.coffee,其中包含
hello = 'hi'
和 asd.js 是空的。
当我grunt coffee
在终端中运行时,它会打印:
Running "coffee:dev" (coffee) task
Done, without errors.
但是没有任何东西被写入 asd.js(或任何地方)。怎么了?我怎样才能解决这个问题?