编译当前目录和所有子目录中所有.coffee文件的最简单方法是什么?
fbu*_*ger 67
您可以使用集成的coffee
shell工具执行此操作:
coffee --output lib --compile src
Run Code Online (Sandbox Code Playgroud)
将.coffee文件的目录树编译src
成.js文件的并行树lib
.有关详细信息,请查看http://coffeescript.org/#usage
qia*_*iao -2
如果您使用的是 *nix 系统:
find -name "*.coffee" -exec coffee -c {} \;
Run Code Online (Sandbox Code Playgroud)
您也可以考虑使用Guard
: https: //github.com/guard/guard-coffeescript