This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hey - I'm new to CoffeeScript and new to Web Workbench, so first of all thanks for making this tool available for free. I have a quick question, which is hopefully easy to answer. I've been looking around at how to compile CoffeeScript files in a windows environment. The 2 main choices I've found are to use cygwin or to use CoffeeScript compiler for Windows the author of which, admits it has a few problems. So I was wondering what you use to compile the CoffeeScrpt files in this plug-in? Thanks in advance, |
|
|
We load the CoffeeScript compiler into Jurassic, a JavaScript engine that runs on .NET. (Jurassic isn't the only option for this; it's just the one we happen to use.) The only wrinkle with this is that the CoffeeScript compiler depends on the Node.js require function, so you need to reimplement require in C# and import it into Jurassic using the hosting API. I wrote a bit about how we hosted the CoffeeScript compiler at http://www.mindscapehq.com/blog/index.php/2011/07/21/polyglot-programming-some-lessons-learned/ (scroll down to the JavaScript section; also has a link to Jurassic). |
|
|
That's awesome - thanks for the blog link, I shall read with intrigue! |
|