Home Download Buy Blog Forum Support

Coffee Compile

Coffee Compile

Postby surjikal on Mon Jul 09, 2012 5:23 pm

This package allows you to compile some or all of your CoffeeScript, right from the editor. The JavaScript output will even have syntax highlighting!

To use it, just highlight some CoffeeScript code, right click and select the Coffee Compile command. To compile the whole file, do the same thing but don't highlight any text.

You can get it from Package Control or pull it straight from the repo:
https://github.com/surjikal/sublime-coffee-compile

Image
surjikal
 
Posts: 1
Joined: Mon Jul 09, 2012 5:14 pm

Re: Coffee Compile

Postby impeached on Mon Jul 09, 2012 5:40 pm

Cool. Would it be possible to have it compile with the '-b' option, to get rid of the closure? At least when compiling just a selection.
impeached
 
Posts: 20
Joined: Mon Nov 14, 2011 11:18 pm

Re: Coffee Compile

Postby aziz on Fri Jul 13, 2012 11:37 pm

It stopped working for me after upgrading to Mac OSX 10.8 Mountain Lion. Using Sublime build 2215
It has a problem accessing the path.
I'm getting this:

Code: Select all
[Errno 2] No such file or directory
[cmd:  [u'coffee', u'--print', u'--lint', u'--eval', u'window.Color = "color"]
[dir:  /Users/allen/Burt/rich_app_frontend/app/assets/javascripts/lib]
[path: /usr/bin:/bin:/usr/sbin:/sbin]


I changed `coffee` to an absolute path `/usr/local/bin/coffee`, and now I get this:

Code: Select all
env: node: No such file or directory


I really like this plugin! do you guy have any idea what might be a solution?
PlainTasks: my opinionated todo plugin
tmThemeEditor color-scheme editor for SumblimeText and Textmate (code on github)
aziz
 
Posts: 40
Joined: Thu Jan 12, 2012 6:29 pm

Re: Coffee Compile

Postby aziz on Sat Jul 14, 2012 1:18 am

Adding path solved my problem for now. but it's a really weird bug that sublime can not access PATH on the mac sometimes. Apparently others have struggled with this bug for a long time.

Code: Select all
        window.run_command("exec", {
            "cmd": ["coffee", "--print", "--bare", "--lint", "--eval", text],
            "quiet": True,
            "path" : "/usr/local/bin"
        })
PlainTasks: my opinionated todo plugin
tmThemeEditor color-scheme editor for SumblimeText and Textmate (code on github)
aziz
 
Posts: 40
Joined: Thu Jan 12, 2012 6:29 pm

Re: Coffee Compile

Postby lazyhack on Mon Jul 16, 2012 4:04 am

Thanks.

By the way, your color scheme and font looks nice.

What is your color scheme and font ?
lazyhack
 
Posts: 4
Joined: Fri Jul 06, 2012 12:31 am


Return to Plugin Announcements

Who is online

Users browsing this forum: Majestic-12 [Bot] and 5 guests