Home Download Buy Blog Forum Support

How to create a new build system for CoffeeScript

How to create a new build system for CoffeeScript

Postby indiver on Thu May 05, 2011 7:29 am

Hi

I tried to setup a new builder for CoffeeScript files. But I get

Code: Select all
"No such file or directory"


when I try to build it.

This is what the build file looks like:
Code: Select all
{
   "cmd": ["coffee", "$file"]
}


I've looked at this: http://sublimetext.info/docs/reference/ ... stems.html

And I think I need to setup "env" correctly. But I can't figure out what is the right way to pass that in.

Any help would be greatly appreciated.

Also, would there be a way to run the script as well?

Thanks.

Indy
indiver
 
Posts: 30
Joined: Fri Mar 04, 2011 5:40 am
Location: Auckland, New Zealand

Re: How to create a new build system for CoffeeScript

Postby guillermooo on Thu May 05, 2011 8:10 am

Locate your "coffee" executable and add that path to "path":

Code: Select all
{
   "cmd": ["coffee", "$file"],
   "path": "/path/to/coffeebin:$PATH"
}


That should do it, I believe.
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am

Re: How to create a new build system for CoffeeScript

Postby indiver on Thu May 05, 2011 8:53 am

Thanks for that.

I also tried setting up the Mac environment variables and specifying the path there. I used http://www.rubicode.com/Software/RCEnvironment/ to set the path up on my Mac, logged out and logged back in. And it worked as well.
indiver
 
Posts: 30
Joined: Fri Mar 04, 2011 5:40 am
Location: Auckland, New Zealand


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 30 guests