From 6eeb9495d8ea0acfd037ed2144bf207ab5399443 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Tue, 14 Jun 2016 13:06:16 -0700 Subject: [PATCH] chore: have test.sh take platform argument --- test.sh | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/test.sh b/test.sh index 6dab988453..741a01342d 100755 --- a/test.sh +++ b/test.sh @@ -2,9 +2,17 @@ set -e -o pipefail -cd `dirname $0` -export NODE_PATH=$NODE_PATH:$(pwd)/dist/all:$(pwd)/dist/tools -$(npm bin)/tsc -p tools -node dist/tools/tsc-watch/ node watch -# node dist/tools/tsc-watch/ browser watch -# node dist/tools/tsc-watch/ tools watch +if [ $# -eq 0 ] + then + echo "Angular test runner. (No platform specified)" + echo + echo "./test.sh [node|browser|tools]" + echo +else + cd `dirname $0` + export NODE_PATH=$NODE_PATH:$(pwd)/dist/all:$(pwd)/dist/tools + $(npm bin)/tsc -p tools + node dist/tools/tsc-watch/ $1 watch +fi + +