Structuring coffeescript code?

后端 未结 5 1032
花落未央
花落未央 2020-12-09 01:46

Under Rails 3.1, I\'m trying to find out how to move a few coffeescript classes away from my controller default coffeescript file (home.js.coffee) into another

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-09 02:43

    Use cake, you can define the order of files and also other custom steps like minify, etc

    Make sure that you specify that all coffee files are combined into single .js output file.

    https://github.com/jashkenas/coffee-script/wiki/[HowTo]-Compiling-and-Setting-Up-Build-Tools

提交回复
热议问题