2016-04-28 20:50:03 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e -o pipefail
|
|
|
|
|
2016-06-14 16:06:16 -04:00
|
|
|
if [ $# -eq 0 ]
|
|
|
|
then
|
|
|
|
echo "Angular test runner. (No platform specified)"
|
|
|
|
echo
|
2016-07-29 17:10:20 -04:00
|
|
|
echo "./test.sh [node|browser|browserNoRouter|tools]"
|
2016-06-14 16:06:16 -04:00
|
|
|
echo
|
|
|
|
else
|
|
|
|
cd `dirname $0`
|
2016-08-26 18:41:50 -04:00
|
|
|
if [ -z ${NODE_PATH+x} ]; then
|
|
|
|
export NODE_PATH=$(pwd)/dist/all:$(pwd)/dist/tools
|
|
|
|
else
|
|
|
|
export NODE_PATH=$NODE_PATH:$(pwd)/dist/all/:$(pwd)/dist/tools/
|
|
|
|
fi
|
2016-06-14 16:06:16 -04:00
|
|
|
$(npm bin)/tsc -p tools
|
|
|
|
node dist/tools/tsc-watch/ $1 watch
|
|
|
|
fi
|
|
|
|
|
|
|
|
|