chore: add test script for compiler_cli

This commit is contained in:
Tobias Bosch 2016-05-04 10:35:46 -07:00
parent 5a84048f72
commit bdce154282
3 changed files with 12 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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