#!/bin/bash set -e case $1 in cljs) npx shadow-cljs compile node-test node target/shadow-node-test/node-tests.js rm -rf target/karma npx shadow-cljs compile karma npx karma start --single-run rm -rf target/karma npx shadow-cljs release karma npx karma start --single-run ;; clj) lein test-clj ;; *) echo "Please select [clj|cljs]" exit 1 ;; esac