CoffeeScript - 编译当前目录和所有子目录中的所有 .coffee 文件 [英] CoffeeScript - compile all .coffee files in current directory and all sub-directories

查看:17
本文介绍了CoffeeScript - 编译当前目录和所有子目录中的所有 .coffee 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

编译当前目录和所有子目录中的所有 .coffee 文件最简单的方法是什么?

What is the easiest way to compile all .coffee files in the current directory and all sub-directories?

推荐答案

如果你使用*nix系统:

If you are using *nix systems:

find -name "*.coffee" -exec coffee -c {} ;

你也可以考虑使用 Guard:https://github.com/guard/guard-coffeescript

这篇关于CoffeeScript - 编译当前目录和所有子目录中的所有 .coffee 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆