angular-cn/modules/@angular/compiler_cli/integrationtest.sh

12 lines
367 B
Bash
Executable File

#!/usr/bin/env bash
set -e -o pipefail
cd $(dirname $0)
cd $(pwd)/../../..
export NODE_PATH=$NODE_PATH:$(pwd)/dist/all:$(pwd)/dist/tools
readonly TESTDIR="@angular/compiler_cli/integrationtest"
rm -f modules/$TESTDIR/src/*.{ngfactory,css.shim}.ts
node dist/all/@angular/compiler_cli/src/main -p modules/$TESTDIR
node dist/tools/cjs-jasmine -- $TESTDIR/**/*_spec.js