build: remove references to tsc-wrapped (#19298)

With this commit `ngc` is used instead of `tsc-wrapped` for
collecting metadata and tsickle rewriting and `tsc-wrapped`
is removed from the repository.

`@angular/tsc-wrapped@5` is now deprecated and is no longer
used, updated, or maintained as part as of Angular 5.x.x.

`@angular/tsc-wrapped@4` is still maintained and required by
Angular 4.x.x and will be maintained as long as 4.x.x is in
LTS.

PR Close #19298
This commit is contained in:
Chuck Jazdzewski
2017-09-20 09:54:47 -07:00
committed by Igor Minar
parent 4c73b52d5c
commit f96142cd7c
104 changed files with 336 additions and 6594 deletions

View File

@ -52,14 +52,13 @@ fi
travisFoldStart "tsc tools"
$(npm bin)/tsc -p tools
$(npm bin)/tsc -p packages/tsc-wrapped/tsconfig-build.json
cp packages/tsc-wrapped/package.json dist/packages-dist/tsc-wrapped
$(npm bin)/tsc -p packages/tsc-wrapped/tsconfig.json
cp packages/tsc-wrapped/package.json dist/all/@angular/tsc-wrapped
$(npm bin)/tsc -p packages/compiler/tsconfig-tools.json
$(npm bin)/tsc -p packages/compiler-cli/tsconfig-tools.json
travisFoldEnd "tsc tools"
travisFoldStart "tsc all"
node --max-old-space-size=3000 dist/packages-dist/tsc-wrapped/src/main -p packages
node --max-old-space-size=3000 dist/packages-dist/tsc-wrapped/src/main -p modules
$(npm bin)/tsc -p packages
node dist/tools/@angular/compiler-cli/src/main -p packages/tsconfig-metadata.json
$(npm bin)/tsc -p modules
travisFoldEnd "tsc all"

View File

@ -5,7 +5,7 @@ set -u -e -o pipefail
# These ones can be `npm link`ed for fast development
LINKABLE_PKGS=(
$(pwd)/dist/packages-dist/{common,forms,core,compiler,compiler-cli,platform-{browser,server},platform-browser-dynamic,router,http,animations,tsc-wrapped}
$(pwd)/dist/packages-dist/{common,forms,core,compiler,compiler-cli,platform-{browser,server},platform-browser-dynamic,router,http,animations}
)
TYPESCRIPT_2_4=typescript@2.4.x
@ -46,10 +46,10 @@ cp -v package.json $TMP
#./node_modules/.bin/ngc -p tsconfig-build.json --i18nFile=src/messages.fi.xtb --locale=fi --i18nFormat=xtb
# Generate the metadata for the third-party modules
node ./node_modules/@angular/tsc-wrapped/src/main -p third_party_src/tsconfig-build.json
./node_modules/.bin/ngc -p third_party_src/tsconfig-build.json
# Generate the the bundle modules
node ./node_modules/@angular/tsc-wrapped/src/main -p flat_module/tsconfig-build.json
./node_modules/.bin/ngc -p flat_module/tsconfig-build.json
# Copy the html files from source to the emitted output
cp flat_module/src/*.html node_modules/flat_module/src

View File

@ -9,8 +9,6 @@ source ${thisDir}/_travis-fold.sh
# Run unit tests for our tools/ directory
travisFoldStart "test.unit.tools"
node ./dist/tools/tsc-watch/ tools runCmdsOnly
# TODO(i) could this be rolled into the tools tests above? why is it separate?
travisFoldStart "test.unit.validate-commit-message"
(
@ -30,8 +28,7 @@ travisFoldEnd "test.unit.node"
# rebuild to revert files in @angular/compiler/test
# TODO(tbosch): remove this and teach karma to serve the right files
travisFoldStart "test.unit.rebuildHack"
node --max-old-space-size=3000 dist/packages-dist/tsc-wrapped/src/main -p packages/tsconfig.json
node --max-old-space-size=3000 dist/packages-dist/tsc-wrapped/src/main -p modules/tsconfig.json
node dist/tools/@angular/compiler-cli/src/main -p packages/tsconfig-metadata.json
travisFoldStart "test.unit.rebuildHack"