Revision 7a1f964201ef04d66ce3a53c37faa52538ea9e43 authored by Igor Minar on 20 October 2016, 22:36:02 UTC, committed by Igor Minar on 20 October 2016, 22:36:02 UTC
1 parent 3dffbb6
Raw File
test.sh
#!/usr/bin/env bash

set -e -o pipefail

if [ $# -eq 0 ]
  then
    echo "Angular test runner. (No platform specified)"
    echo
    echo "./test.sh [node|browser|browserNoRouter|router|tools]"
    echo
else
  cd `dirname $0`
  rm -rf dist/tools
  rm -rf dist/all
  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
  $(npm bin)/tsc -p tools
  node dist/tools/tsc-watch/ $1 watch
fi


back to top