11 ms·
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 t
by statictype 15y ago
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.
- dualogy 15y agoThe 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?
- amirshim 15y agosure... you can run coffeescript on node on windows, see: http://blog.tatham.oddie.com.au/2011/03/16/node-js-on-windows/ 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/ 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.
- chrisb 15y agoNot 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.