| 
									
										
										
										
											2019-08-12 20:52:58 +01:00
										 |  |  | #!/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")" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-02-29 22:25:49 +02:00
										 |  |  | node $(pwd)/../../scripts/build/build-packages-dist.js | 
					
						
							| 
									
										
										
										
											2019-08-12 20:52:58 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | # 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 | 
					
						
							| 
									
										
										
										
											2019-11-15 02:56:55 +02:00
										 |  |  | yarn test |