Skip to content

Instantly share code, notes, and snippets.

@jnape
Created October 15, 2012 22:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnape/3895906 to your computer and use it in GitHub Desktop.
Save jnape/3895906 to your computer and use it in GitHub Desktop.
"Run with Jasmine" TextMate CoffeeScript Command
# Using the Bundle Editor, add a new command for the CoffeeScript bundle
# Save: Nothing
# Input: Entire Document
# Output: Show as Tool Tip
# Command(s):
input="$TM_FILEPATH"
regex=".spec.(js|coffee)$"
jasmine=`which jasmine-node`
if [[ $input =~ $regex ]];
then
$jasmine --coffee --noColor "$input"
else
$jasmine --coffee --noColor specs/
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment