jashkenas/coffee-script — Issue #2150: --watch not working properly on Windows?
Author: neojp
Created: 2012-02-27 15:09:45+00:00
State: open

Running CoffeeScript version 1.2.0 and Node 0.6.10.

`> coffee -w lib/*.coffee models/*.coffee app.coffee`
Won't watch any files inside lib or models, nor will re-run the server command from app.coffee if the file is modified.

So far, I have to compile the coffeescript files to regular javascript files
`> coffee -wbc app lib/error_handler lib/helpers lib/index lib/middleware models/index models/photo models/tag models/user`

And then use node-supervisor to refresh the server command whenever a file was changed.

I know the first command was possible when I used to use Cygwin and when I tried it on linux, but node core developers dropped support for it and asks you to use the official build for windows, which makes total sense.

Just wonder if this is a Windows shell limitation, Node's limitations in the Windows environment or if it's something you can do in the CoffeeScript's cli script.