Coffee script compilation

前端 未结 11 2157
深忆病人
深忆病人 2020-12-13 05:19

I\'m looking for simplest possible way to automatically recompile coffee scripts into JS.

Reading documentation but still having troubles to get exactly what I want.

11条回答
  •  我在风中等你
    2020-12-13 05:47

    The short answer to your question is that the coffee utility wasn't designed for this; combining file-watching and concatenation is actually pretty complex. Expect more sophisticated build tools for CoffeeScript in the near future; until then, you might want to do your project's builds by writing a Cakefile or Ruby Watchr script. Then you can also throw in minification, documentation-generation, and whatever else you need for your particular project (not to mention guaranteeing a particular concatenation order).

提交回复
热议问题