r/coffeescript • u/taw • Dec 20 '13
Minimum Coffeescript setup for quick development?
So I've used Coffeescript within Rails app before, but now I have some trivial client-side-only JS code which I'm writing with Sublime in one window, and browser in another.
Is there any easy way to use Coffeescript here without introducing compilation explicit step?
4
Upvotes
View all comments
Show parent comment
1
u/taw Dec 21 '13 edited Dec 21 '13
Thanks, that worked. Unfortunately code generated by js2coffee doesn't work.
I think that's because things which were meant to return nulls are now are returning non-null values (and that breaks jQuery.each), but it could be some other issue as well.
EDIT: Apparently it was also incorrectly converting for-loops into while-loops which broke
continueand generated some infinite looping.