From bdce1542823edaa2c0f169e109c5caa721038268 Mon Sep 17 00:00:00 2001 From: Tobias Bosch Date: Wed, 4 May 2016 10:35:46 -0700 Subject: [PATCH] chore: add test script for compiler_cli --- modules/@angular/compiler_cli/README.md | 5 ++--- modules/@angular/compiler_cli/integrationtest.sh | 9 +++++++++ test.sh | 2 +- 3 files changed, 12 insertions(+), 4 deletions(-) create mode 100755 modules/@angular/compiler_cli/integrationtest.sh diff --git a/modules/@angular/compiler_cli/README.md b/modules/@angular/compiler_cli/README.md index b97d937ee9..26f8aa6ed1 100644 --- a/modules/@angular/compiler_cli/README.md +++ b/modules/@angular/compiler_cli/README.md @@ -83,13 +83,12 @@ Run the compiler from source: # Build angular2 and the compiler ./node_modules/.bin/tsc -p modules # Run it on the test project -$ export NODE_PATH=$NODE_PATH:dist/all:dist/tools -$ node dist/packages-dist/compiler_cli/src/main -p modules/@angular/compiler_cli/integrationtest +$ ./integrationtest.sh ``` Release: ``` -$ node dist/tools/cjs-jasmine -- @angular/compiler_cli/integrationtest/**/*_spec.js +$ ./integrationtest.sh $ cp modules/@angular/compiler_cli/README.md modules/@angular/compiler_cli/package.json dist/all/@angular/compiler_cli # npm login as angular $ npm publish dist/all/@angular/compiler_cli --access=public diff --git a/modules/@angular/compiler_cli/integrationtest.sh b/modules/@angular/compiler_cli/integrationtest.sh new file mode 100755 index 0000000000..a1a889f3a0 --- /dev/null +++ b/modules/@angular/compiler_cli/integrationtest.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +set -e -o pipefail + +cd $(dirname $0) +cd $(pwd)/../../.. +export NODE_PATH=$NODE_PATH:$(pwd)/dist/all:$(pwd)/dist/tools +node dist/all/@angular/compiler_cli/src/main -p modules/@angular/compiler_cli/integrationtest +node dist/tools/cjs-jasmine -- @angular/compiler_cli/integrationtest/**/*_spec.js diff --git a/test.sh b/test.sh index c4d6557440..3a636e021b 100755 --- a/test.sh +++ b/test.sh @@ -3,7 +3,7 @@ set -e -o pipefail cd `dirname $0` -export NODE_PATH=$NODE_PATH:$(pwd)/dist/all +export NODE_PATH=$NODE_PATH:$(pwd)/dist/all:$(pwd)/dist/tools $(npm bin)/tsc -p tools node dist/tools/tsc-watch/ node watch # node dist/tools/tsc-watch/ browser watch