ironsand
ironsand

Reputation: 15141

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

I want to use coffee command from smart-compile in Emacs.

So I need to output converted javascript to standard output. But I couldn't find the command line option for it.

Is there a any way for it?

Upvotes: 0

Views: 85

Answers (1)

Ehvince
Ehvince

Reputation: 18375

I didn't exactly understand your workflow, but here an attempt to answer, assuming you are compiling with M-x compile: in the prompt, enter coffee -p yourFile.coffee. It will output the compiled JS into the compilation buffer.

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

Upvotes: 2

Related Questions