Skip to content

Instantly share code, notes, and snippets.

@tatey
Created October 16, 2013 23:30
Show Gist options
  • Save tatey/7016801 to your computer and use it in GitHub Desktop.
Save tatey/7016801 to your computer and use it in GitHub Desktop.
bin/karma Binstub that runs our javascript suite when given no arguments.
#!/bin/sh
if [ "$#" -eq 0 ]; then
$(npm bin)/karma start $(cd "$(dirname "$0")"; pwd)/../spec/javascripts/karma.conf.js --single-run
else
$(npm bin)/karma $@
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment