我有一份咖啡文件。如果我改变它,只有那个应该被编译
watch:
compile:
files: ['**.coffee']
tasks: ['coffee:compile']
option:
nospawn: true
coffee:
compile: ['*.coffee']
grunt.event.on 'watch', (action,filepath)->
grunt.config ['coffee','compile'],filepath
上面的配置来自https://github.com/gruntjs/grunt-contrib-watch 但它不起作用。