从.coffee编译后,在.js文件中维护注释

我想在输出的JavaScript文件中保留我在我的CoffeeScript文件中完整写入的注释。 我怎样才能做到这一点?

#!/usr/bin/env bash ./node_modules/.bin/coffee --output lib/ --compile --bare --watch src/ 

从咖啡脚本文档 :

块注释,反映heredocs的语法,保存在生成​​的代码。

这(借用下面的types错误的回复 – 整洁!):

 ###* # This will be preserved in a block comment in the javascript ### 

编译为:

 /** * This will be preserved in a block comment in the javascript */ 

在上面的Linus的回答中,我发现这是获得我想要的评论风格的最佳风格:

 ###* # Hello world # @param Object object # @return String ### 

添加第一个###门开始评论和附加*给我们

 /** * Hello world * @param Object object * @return String */