Coffee script compilation

前端 未结 11 2140
深忆病人
深忆病人 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:50

    I have found the command-line coffeescript compiler to be poorly suited for complex project structures.

    If you and your build process are as needy as I am, check out Grunt - http://gruntjs.com/

    It allows for highly complex build processes - for example, you might

    1. concatenate coffee to new file(s)
    2. compile
    3. concatenate some additional JS
    4. minify

    Tasks can be strung together, and watched files/folders are highly customizable as well.

提交回复
热议问题