ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Coffee​Compile

by surjikal ST2/ST3

Preview compiled CoffeeScript in your editor!

Details

  • 2018.12.16.16.48.24
  • github.​com
  • github.​com
  • 12 months ago
  • 1 hour ago
  • 7 years ago

Installs

  • Total 43K
  • Win 13K
  • OS X 20K
  • Linux 10K
Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23
Windows 0 0 0 0 0 0 1 0 1 0 1 2 0 1 0 0 0 0 3 0 2 1 0 1 2 4 0 0 0 0 1 2 2 0 1 1 0 2 0 2 0 0 0 1 1 0
OS X 0 1 0 3 3 0 0 0 0 2 1 2 1 1 0 0 0 1 3 0 0 0 0 1 0 1 0 0 0 1 3 2 1 1 0 1 0 2 2 2 2 0 0 2 1 1
Linux 0 0 0 0 1 1 2 1 1 1 1 0 0 1 0 2 0 0 0 1 1 1 0 0 0 1 0 0 1 1 0 0 2 0 0 0 1 1 0 0 1 0 1 1 1 0

Readme

Source
raw.​githubusercontent.​com

Sublime Text 2/3 - 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!

To install CoffeeCompile, simply use Package Control.

You'll need to setup some paths in the settings file before you can use the plugin. Instructions are included in the settings file, don't worry! The settings file can be accessed through this menu: Sublime Text > Preferences > Package Settings > CoffeeCompile > Settings - User

To use the plugin, highlight your CoffeeScript and hit Ctrl+Shift+C (or Cmd+Shift+C on OSX).
Alternatively, right click and select the Coffee Compile command. To compile the whole file, don't highlight any text.

CoffeeCompile Screenshot

Color Scheme: Made of Code

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, go in the settings file and 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, go in the settings file and 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"