Home Download Buy Blog Forum Support

Using Coffeescript tmbundle

Using Coffeescript tmbundle

Postby DanyW on Sun Jan 22, 2012 9:59 pm

Hi folks,

I am using this bundle https://github.com/jashkenas/coffee-script-tmbundle as most discussion threads on here suggest. Back in Textmate I was able to display the javascript output using CMD+B. I can't figure out how to do this on Sublime 2. Any ideas please?

Thanks,
Dany.
DanyW
 
Posts: 8
Joined: Sat Jan 21, 2012 11:02 pm

Re: Using Coffeescript tmbundle

Postby C0D312 on Sun Jan 22, 2012 10:42 pm

You'll have to make a new "build system." Go to Tools > Build System > New Build System. Try adding something like this:
Code: Select all
{
"cmd": ["coffee", "-p", "$file"],
"selector" : "source.coffee",
"path" : "/usr/local/bin"
}


Now it should build on command-B. If that does work, you can search the forum for others who have made build systems for coffeescript...
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: Using Coffeescript tmbundle

Postby DanyW on Sun Jan 22, 2012 11:12 pm

Yes, I have done this already and I think it works. All I get is a panel across the bottom that says [Finished]. I would like to have the Javascript output displayed to me, like it was in Textmate.
DanyW
 
Posts: 8
Joined: Sat Jan 21, 2012 11:02 pm

Re: Using Coffeescript tmbundle

Postby C0D312 on Mon Jan 23, 2012 12:06 am

Sorry. Not a coffee user. :| Can't help with converting it to js. I'm sure someone else can though.
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 12 guests