如何更改咖啡脚本时如何观察和重新编译?

Emi*_*nov 1 coffeescript

前段时间我曾经这样做过

coffee --bare --output . --watch --compile .
Run Code Online (Sandbox Code Playgroud)

这会监视.coffee当前目录中的文件,并在它们发生变化时重新编译它们.

现在,使用1.2.0的coffeescript,这似乎不再起作用了.我遇到了一个错误:

File not found: --watch.coffee
Run Code Online (Sandbox Code Playgroud)

使用文档coffee似乎很轻.

Elf*_*erg 7

我跳过了--output .,因为如果你已经在同一个目录中似乎没有必要,直接去

coffee -bcw *.coffee
Run Code Online (Sandbox Code Playgroud)

否则,这是在Save编译CoffeeScript的副本