matsuda
4/14/2011 - 7:14 AM

TextMate command to convert CoffeeScript to JavaScript

TextMate command to convert CoffeeScript to JavaScript

#!/bin/bash

coffee -scp --bare | sed 's/</\&lt;/g' | sed 's/>/\&gt;/g'

# original: https://github.com/jashkenas/coffee-script-tmbundle/blob/master/Commands/Compile%20and%20Display%20JS.tmCommand