views:

122

answers:

3

I'd love to use CoffeeScript, but converting all my JavaScript files doesn't seem like a task I should have to do by hand...

A: 

I had a quick look around and I don't think it's possible, it seems like CoffeeScript converts it's code into compiled JavaScript code, so you should be able to do small chucks at a time.

ILMV
+2  A: 

You could use CoffeeScript for all your new scripts. I mean, seeing as CoffeeScript interpreters turn it back into JavaScript, you could just keep your old JavaScript as-is and leave it while you spend your time on writing new CoffeeScript.

Delan Azabani
+2  A: 

http://github.com/jsilver/js2cs

matyr
This is the only attempt I've seen; you can try it at http://jsilver.github.com/js2cs/example.html. Note the limitations listed in the README; also, it hasn't been updated for CoffeeScript 0.9, which introduced some major syntactic changes.
Trevor Burnham
"Page does not exist!"
Rafał Sobota