将咖啡转换为javascript,并将结果显示在Emacs中的标准输出中

Convert coffee to javascript and show the result to standard output in Emacs

本文关键字:标准输出 Emacs 显示 转换 咖啡 javascript 结果      更新时间:2023-09-26

我想在Emacs中使用smart-compile coffee命令。

所以我需要将转换后的 javascript 输出到标准输出。但是我找不到它的命令行选项。

有什么办法吗?

我并不完全理解您的工作流程,但在这里尝试回答,假设您正在使用M-x compile进行编译:在提示符中,输入 coffee -p yourFile.coffee .它会将编译后的 JS 输出到编译缓冲区中。

coffee -h -> -p, --print print out the compiled JavaScript