Skip to content

parkerl/CoffeeScript.codaplugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

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 <script></script> 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:

    <script src="file://///Users/XXXXX/Library/Application Support/Coda/Plug-ins/CoffeeScript.codaplugin/Contents/Resources/D045B81C-A3ED-47B1-A5E7-3C2216B695EA/Support Files/jquery-1.6.1.min.js"> </script> <script> (function() { jQuery(function() { return $('body').prepend("

    Hot Coffee!!

    "); }); }).call(this); </script>

Prerequisites

Installation

To install via Git:

	mkdir -p ~/Library/Application\ Support/Coda/Plug-ins
	cd ~/Library/Application\ Support/Coda/Plug-ins
	git clone git@github.com: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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages