remy/nodemon — pull request #96 by DennisKehrig (2012-05-04 12:38:45+00:00)
Title: Fixed CoffeeScript compatibility under Windows

isWindows was defined after getNodemonArgs() was called -> '.cmd' wasn't added to the exec path.
nodemon foo.coffee therefore would fail with a CreateProcessW error.

coffee.cmd however does not launch node.exe directly, but instead cmd.exe with node.exe as a subprocess. Therefore child.kill() only kills cmd.exe, not the actual application. Using the taskkill utility, we can kill a whole tree - i.e. cmd.exe (identified by PID) and all its child processes (node.exe).