chore: have test.sh take platform argument

This commit is contained in:
Misko Hevery 2016-06-14 13:06:16 -07:00
parent 566b4ef481
commit 6eeb9495d8
1 changed files with 14 additions and 6 deletions

14
test.sh
View File

@ -2,9 +2,17 @@
set -e -o pipefail set -e -o pipefail
if [ $# -eq 0 ]
then
echo "Angular test runner. (No platform specified)"
echo
echo "./test.sh [node|browser|tools]"
echo
else
cd `dirname $0` cd `dirname $0`
export NODE_PATH=$NODE_PATH:$(pwd)/dist/all:$(pwd)/dist/tools export NODE_PATH=$NODE_PATH:$(pwd)/dist/all:$(pwd)/dist/tools
$(npm bin)/tsc -p tools $(npm bin)/tsc -p tools
node dist/tools/tsc-watch/ node watch node dist/tools/tsc-watch/ $1 watch
# node dist/tools/tsc-watch/ browser watch fi
# node dist/tools/tsc-watch/ tools watch