Skip to content

Commit 6eeb949

Browse files
committed
chore: have test.sh take platform argument
1 parent 566b4ef commit 6eeb949

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

test.sh

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,17 @@
22

33
set -e -o pipefail
44

5-
cd `dirname $0`
6-
export NODE_PATH=$NODE_PATH:$(pwd)/dist/all:$(pwd)/dist/tools
7-
$(npm bin)/tsc -p tools
8-
node dist/tools/tsc-watch/ node watch
9-
# node dist/tools/tsc-watch/ browser watch
10-
# node dist/tools/tsc-watch/ tools watch
5+
if [ $# -eq 0 ]
6+
then
7+
echo "Angular test runner. (No platform specified)"
8+
echo
9+
echo "./test.sh [node|browser|tools]"
10+
echo
11+
else
12+
cd `dirname $0`
13+
export NODE_PATH=$NODE_PATH:$(pwd)/dist/all:$(pwd)/dist/tools
14+
$(npm bin)/tsc -p tools
15+
node dist/tools/tsc-watch/ $1 watch
16+
fi
17+
18+

0 commit comments

Comments
 (0)