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-08-30 21:07:40 -04:00
|
|
|
echo "./test.sh [node|browser|browserNoRouter|router|tools]"
|
2016-06-14 16:06:16 -04:00
|
|
|
echo
|
|
|
|
else
|
|
|
|
cd `dirname $0`
|
2016-09-02 19:23:00 -04:00
|
|
|
rm -rf dist/tools
|
|
|
|
rm -rf dist/all
|
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
|
|
|
|
|
|
|
|
|