This is a standalone executable allowing you to compile CoffeeScript files on Windows.
Download coffee.exe to your Windows directory (or any other directory in your %PATH%)
Same as the original coffee command:
-c, --compile compile to JavaScript and save as .js files-o, --output [DIR] set the directory for compiled JavaScript-j, --join [FILE] concatenate the scripts before compiling-b, --bare compile without the top-level function wrapper-v, --version display CoffeeScript version-h, --help display a list of available options
If you specify a directory as a source, all .coffee files in that directory will be compiled recursively.
Create coffee.cmd in your Windows directory:
@echo off"%PROGRAMFILES%/Node/node.exe" "%PROGRAMFILES%/CoffeeScript/bin/coffee" %*
聯(lián)系客服