I’ve been contemplating moving my project over to cloud 9 IDE but have been having trouble running coffee script in the project. I copied over all my js and coffee files but can’t seem to get a run configuration working using the coffee files. I tried compiling the coffee files in the console command line as well as creating a run configuration that calls the app.coffee directly but no luck.
What is the coffee script support on cloud 9 and how does it work. Does it compile the coffee script to js automatically? How do I need to configure my run settings in cloud 9?
I got it working… your results may vary, but this is what I did…
Assuming you have your app which is called
app.coffee, I created a file calledrunner.jswith the following code:From the Cloud9 IDE, I just tell it to run the
runner.jsfile and it seems to work.I also wasn’t able to use my global npm-installed packages… not sure why, but I am guessing it is just a pathing issue. Anyways, I just installed my packages into my project directory:
I was also using
expressandrestlerin my project so I did the same thing in the project. It worked beautiffuly 🙂