* rename test helper script * add material to the ngcc integration test * add MatButton to ngcc integration test checks * remove platform-server from ngcc integration test This package does not yet compile as it contains a package-private (internal) decorated class, which the ngcc compiler does not yet handle. PR Close #26403
		
			
				
	
	
		
			29 lines
		
	
	
		
			647 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			647 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")"
 | 
						|
 | 
						|
$(pwd)/../../scripts/build-packages-dist.sh
 | 
						|
 | 
						|
# Workaround https://github.com/yarnpkg/yarn/issues/2165
 | 
						|
# Yarn will cache file://dist URIs and not update Angular code
 | 
						|
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 |