chore: have test.sh take platform argument
This commit is contained in:
parent
566b4ef481
commit
6eeb9495d8
20
test.sh
20
test.sh
|
@ -2,9 +2,17 @@
|
||||||
|
|
||||||
set -e -o pipefail
|
set -e -o pipefail
|
||||||
|
|
||||||
cd `dirname $0`
|
if [ $# -eq 0 ]
|
||||||
export NODE_PATH=$NODE_PATH:$(pwd)/dist/all:$(pwd)/dist/tools
|
then
|
||||||
$(npm bin)/tsc -p tools
|
echo "Angular test runner. (No platform specified)"
|
||||||
node dist/tools/tsc-watch/ node watch
|
echo
|
||||||
# node dist/tools/tsc-watch/ browser watch
|
echo "./test.sh [node|browser|tools]"
|
||||||
# node dist/tools/tsc-watch/ tools watch
|
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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue