CoffeeScript.codaplugin icon indicating copy to clipboard operation
CoffeeScript.codaplugin copied to clipboard

CoffeeScript Coda plug-in

Contains the following commands specific to the current file:

  • Compile - compiles the CoffeeScript and opens the JavaScript result in a new file

  • Compile and Run - compiles the CoffeeScript and opens the JavaScript result in Coda "Preview" inside tags. Console output should be shown.

  • Compile and Run with JQuery - compiles the CoffeeScript and opens the JavaScript result in Coda "Preview". Creates a skeleton page with jQuery included from the package source in the

    . The current version is jquery-1.6.1.min.

    Here is a sample of the output:

    jQuery -> $('body').prepend "

    Hot Coffee!!

    "

    compiles to:

Prerequisites

  • Node.js http://nodejs.org/

  • CoffeeScript http://jashkenas.github.com/coffee-script/#installation

Installation

To install via Git:

	mkdir -p ~/Library/Application\ Support/Coda/Plug-ins
	cd ~/Library/Application\ Support/Coda/Plug-ins
	git clone [email protected]:parkerl/CoffeeScript.codaplugin.git

Then restart Coda.

Source can be viewed or forked via GitHub: https://github.com/parkerl/CoffeeScript.codaplugin

Author

Coda plugin by Lew Parker