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

Coffee​Compile

by surjikal ALL

JS as compiler target back when it was not cool!

Details

  • 2018.12.16.16.48.24
  • github.​com
  • github.​com
  • 5 years ago
  • 10 minutes ago
  • 12 years ago

Installs

  • Total 44K
  • Win 14K
  • Mac 20K
  • Linux 10K
Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7
Windows 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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.

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"