Hacker News new | past | comments | ask | show | jobs | submit login

How is Window's support for CoffeeScript? Does the compiler run on Windows?

What I would really like is to be able to run the compiler from code, allowing me to keep .coffee files on the server and compile/cache them into javascript when browsers request them.




Not quite what you are asking for, but I've recently started using the Chirpy VS add-in (chirpy.codeplex.com). It comiles CoffeeScript on save in VS, producing one readable and one minified js version.

It also handles .less, but I haven't used this yet.


The CoffeeScript compiler is written in CoffeeScript so you can run it wherever you have a JavaScript runtime running. So easy to compile in the browser if eval()ing the compilation result is acceptable. (There's some fancy <script type="text/coffeescript"> or some such example on the CoffeeScript project homepage)

Server-side on Windows... not sure, IronJS / JScript.NET I believe?


sure... you can run coffeescript on node on windows, see: http://blog.tatham.oddie.com.au/2011/03/16/node-js-on-window...

And if you don't want to use vs2010, there is also gedit on windows which has support for coffeescript.

As for online, what I do is I have an online coffeescript editor (http://ace.ajax.org/), and when I save a file (with extension .coffee), compile it to js in the browser and save both the original .coffee file and .js file back to the server.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: