mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
d6528b157f
Follow-up to: cce395a928.
PR Close #46456
31 lines
706 B
Bash
Executable File
31 lines
706 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
##### Test Debug Utility #####
|
|
##############################
|
|
|
|
# Use this script to run the ngcc integration test locally
|
|
# in isolation from the other integration tests.
|
|
# This is useful when debugging the ngcc code-base.
|
|
|
|
set -u -e -o pipefail
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
# Go to the project directory and build the release packages.
|
|
(cd $(pwd)/../../ && yarn build)
|
|
|
|
# Workaround https://github.com/yarnpkg/yarn/issues/2165
|
|
# Yarn will cache file://dist URIs and not update Angular code
|
|
export readonly cache=../.yarn_local_cache
|
|
function rm_cache {
|
|
rm -rf $cache
|
|
}
|
|
rm_cache
|
|
mkdir $cache
|
|
trap rm_cache EXIT
|
|
|
|
rm -rf dist
|
|
rm -rf node_modules
|
|
yarn install --cache-folder $cache
|
|
yarn test
|