| 
									
										
										
										
											2017-11-29 12:47:04 +02:00
										 |  |  | #!/usr/bin/env bash
 | 
					
						
							| 
									
										
										
										
											2017-05-23 17:20:56 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-13 22:50:05 -07:00
										 |  |  | set -eu -o pipefail | 
					
						
							| 
									
										
										
										
											2017-06-15 10:10:28 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-06-22 16:47:53 -07:00
										 |  |  | readonly thisDir=$(cd $(dirname $0); pwd) | 
					
						
							| 
									
										
										
										
											2017-06-30 10:08:33 -07:00
										 |  |  | readonly parentDir=$(dirname $thisDir) | 
					
						
							| 
									
										
										
										
											2019-06-14 13:01:37 +03:00
										 |  |  | readonly target=${1:-aio} | 
					
						
							| 
									
										
										
										
											2017-05-23 17:20:56 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-08-03 15:18:55 -07:00
										 |  |  | # Track payload size functions | 
					
						
							|  |  |  | source ../scripts/ci/payload-size.sh | 
					
						
							| 
									
										
										
										
											2017-05-23 17:20:56 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-04-11 16:01:53 -07:00
										 |  |  | # Provide node_modules from aio | 
					
						
							|  |  |  | NODE_MODULES_BIN=$PROJECT_ROOT/aio/node_modules/.bin/ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-04-06 09:42:02 -07:00
										 |  |  | trackPayloadSize "$target" "dist/*.js" true "$PROJECT_ROOT/goldens/size-tracking/aio-payloads.json" |