2016-06-08 16:06:23 -07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -ex -o pipefail
|
|
|
|
|
|
|
|
# These ones can be `npm link`ed for fast development
|
2016-06-23 10:43:50 -07:00
|
|
|
# Note that compiler-cli does not support TS 1.8 because tsc-wrapped uses 1.9 features
|
2016-06-08 16:06:23 -07:00
|
|
|
LINKABLE_PKGS=(
|
2016-08-09 15:18:55 -07:00
|
|
|
$(pwd)/dist/packages-dist/{common,core,compiler,http,router,upgrade,platform-{browser,browser-dynamic,server}}
|
2016-06-08 16:06:23 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
TMPDIR=${TMPDIR:-/tmp/angular-build/}
|
|
|
|
readonly TMP=$TMPDIR/typings-test.$(date +%s)
|
|
|
|
mkdir -p $TMP
|
|
|
|
cp -R -v tools/typings-test/* $TMP
|
|
|
|
|
|
|
|
# run in subshell to avoid polluting cwd
|
|
|
|
(
|
|
|
|
cd $TMP
|
|
|
|
# create package.json so that npm install doesn't pollute any parent node_modules's directory
|
|
|
|
npm init --yes
|
2017-01-27 16:16:58 -08:00
|
|
|
npm install ${LINKABLE_PKGS[*]} @types/jasmine rxjs@5.0 zone.js@0.7 typescript@2.0.2
|
2016-06-08 16:06:23 -07:00
|
|
|
$(npm bin)/tsc --version
|
|
|
|
$(npm bin)/tsc -p tsconfig.json
|
|
|
|
)
|