Created
October 15, 2012 22:09
-
-
Save jnape/3895906 to your computer and use it in GitHub Desktop.
"Run with Jasmine" TextMate CoffeeScript Command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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