chore: add test script for compiler_cli
This commit is contained in:
parent
5a84048f72
commit
bdce154282
|
@ -83,13 +83,12 @@ Run the compiler from source:
|
||||||
# Build angular2 and the compiler
|
# Build angular2 and the compiler
|
||||||
./node_modules/.bin/tsc -p modules
|
./node_modules/.bin/tsc -p modules
|
||||||
# Run it on the test project
|
# Run it on the test project
|
||||||
$ export NODE_PATH=$NODE_PATH:dist/all:dist/tools
|
$ ./integrationtest.sh
|
||||||
$ node dist/packages-dist/compiler_cli/src/main -p modules/@angular/compiler_cli/integrationtest
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Release:
|
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
|
$ cp modules/@angular/compiler_cli/README.md modules/@angular/compiler_cli/package.json dist/all/@angular/compiler_cli
|
||||||
# npm login as angular
|
# npm login as angular
|
||||||
$ npm publish dist/all/@angular/compiler_cli --access=public
|
$ npm publish dist/all/@angular/compiler_cli --access=public
|
||||||
|
|
|
@ -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
|
2
test.sh
2
test.sh
|
@ -3,7 +3,7 @@
|
||||||
set -e -o pipefail
|
set -e -o pipefail
|
||||||
|
|
||||||
cd `dirname $0`
|
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
|
$(npm bin)/tsc -p tools
|
||||||
node dist/tools/tsc-watch/ node watch
|
node dist/tools/tsc-watch/ node watch
|
||||||
# node dist/tools/tsc-watch/ browser watch
|
# node dist/tools/tsc-watch/ browser watch
|
||||||
|
|
Loading…
Reference in New Issue