What is the easiest way to compile all .coffee files in the current directory and all sub-directories?
标签:
coffeescript
相关问题
- no difference between [..] and […] for array?
- Simple promise example with bluebird and coffeescr
- Grunt-browserify+mapify+coffeescript = module not
- How do I turn a String into a Readable Stream?
- CoffeeScript: How to return a array From class?
相关文章
- Most concise way to assign a value from a variable
- CoffeeScript String Comparison
- Change attribute using checkbox, AJAX, jQuery
- Parse error using Remotipart
- Combine and minify templates with CoffeeScript / C
- Can't require local CoffeeScript modules
- node.js http.request event flow - where did my END
- Rails 3.1 Ajax question
or
Either of these commands will run forever, watching for *.coffee files in the current directory, and compiling those *.coffee files into *.js JavaScript files whenever the *.coffee files are changed.
If you want the *.js files to be generated into some other directory, just add --output or -o, like this:
or
you can do so with the integrated
coffee
shell tool:compiles a directory tree of .coffee files in
src
into a parallel tree of .js files inlib
. Check http://coffeescript.org/#usage for more detailsIf you are using *nix systems:
and you may also consider using
Guard
: https://github.com/guard/guard-coffeescriptThanks @TrevorBurnham