2013-07-14 40 views
-1

我一直无法弄清楚如何运行grunt-contrib-watch。运行grunt watch按规定不仅导致:Grunt手表不运行

Running "watch" task 
Waiting... 

然后我回到我的命令提示符下再次,没有守护进程阻塞输入,或显示在任务管理器了;而且我从昨晚开始就一直在搞这件事,但仍然无法弄清楚我做错了什么。这是我的gruntfile;如果有任何帮助,我正在使用Windows 7计算机。

+0

尝试用'咕噜看-v'。这将启用详细输出并显示所有正在监视的文件。如果你仍然有问题,你可以打开它在https://github.com/gruntjs/grunt-contrib-watch/issues? –

+0

下面是我得到的输出:http://pastebin.com/2905MdzC – egasimus

回答

2

只注意到你的gruntfile有filed它应该是files

watch: { 
    filed: ['src/**/*'], 
    tasks: ['stylus:compile', 'coffee:compile', 'jade:compile'], 
} 

试试这个:

watch: { 
    files: ['src/**/*'], 
    tasks: ['stylus:compile', 'coffee:compile', 'jade:compile'], 
}