build(tsc): Use angular2-template-compiler in place of tsc

This gives us tsickle pre-processing of Decorators, and produces
.metadata.json files for users to consume in their offline compilation.
This commit is contained in:
Alex Eagle
2016-05-01 18:23:16 -07:00
committed by Misko Hevery
parent a66cdb469f
commit 57240c85a5
23 changed files with 89 additions and 6 deletions

View File

@ -6,9 +6,9 @@ cd `dirname $0`
TSCONFIG=./modules/tsconfig.json
echo "====== (all)COMPILING: \$(npm bin)/tsc -p ${TSCONFIG} ====="
echo "====== (all)COMPILING: \$(npm bin)/ng2tc -p ${TSCONFIG} ====="
rm -rf ./dist/all/
$(npm bin)/tsc -p ${TSCONFIG}
$(npm bin)/ng2tc -p ${TSCONFIG}
rm -rf ./dist/packages-dist
@ -30,8 +30,8 @@ do
UMDES5PATH=${DESTDIR}/${PACKAGE}.umd.js
echo "====== COMPILING: \$(npm bin)/tsc -p ${SRCDIR}/tsconfig.json ====="
$(npm bin)/tsc -p ${SRCDIR}/tsconfig.json
echo "====== COMPILING: \$(npm bin)/ng2tc -p ${SRCDIR}/tsconfig.json ====="
$(npm bin)/ng2tc -p ${SRCDIR}/tsconfig.json
cp ${SRCDIR}/package.json ${DESTDIR}/
@ -44,8 +44,8 @@ do
fi
echo "====== (esm)COMPILING: \$(npm bin)/tsc -p ${SRCDIR}/tsconfig-es2015.json ====="
$(npm bin)/tsc -p ${SRCDIR}/tsconfig-es2015.json
echo "====== (esm)COMPILING: \$(npm bin)/ng2tc -p ${SRCDIR}/tsconfig-es2015.json ====="
$(npm bin)/ng2tc -p ${SRCDIR}/tsconfig-es2015.json
echo "====== BUNDLING: ${SRCDIR} ====="