Preview compiled CoffeeScript in your editor!
Python
Switch branches/tags
Nothing to show
Pull request Compare This branch is 34 commits behind surjikal:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Keymaps
Menus
.gitignore
CoffeeCompile.sublime-settings
README.md
coffee_compile.py
package-metadata.json

README.md

#Sublime Text 2 - Coffee Compile

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

Just highlight some CoffeeScript code, right click and select the Coffee Compile command. To compile the whole file, don't highlight any text.

CoffeeCompile Screenshot

Common Issues

OSError: [Errno 2] No such file or directory

This is happening because the plugin can't find coffee (or coffee.cmd on Windows). To fix this, set the coffee_path to the executable's directory.

If you don't know where coffee is, run the following in your terminal: dirname `which coffee`

env: node: No such file or directory

This is happening because coffee can't find your node executable. To fix this, set the node_path setting to the executable's directory.

If you don't know where node is, run the following in your terminal: dirname `which node`

Install

Package Control

Install the CoffeeCompile package from Package Control.

Manual

Clone this repository from your Sublime packages directory:

Linux

$ cd ~/.config/sublime-text-2/Packages
$ git clone https://github.com/surjikal/sublime-coffee-compile "Coffee Compile"

Macosx

$ cd "~/Library/Application Support/Sublime Text 2/Packages"
$ git clone https://github.com/surjikal/sublime-coffee-compile "Coffee Compile"

Windows (manual install untested)

$ cd "%APPDATA%\Sublime Text 2"
$ git clone https://github.com/surjikal/sublime-coffee-compile "Coffee Compile"