| 
									
										
										
										
											2017-09-28 16:18:12 -07:00
										 |  |  | #!/bin/bash
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | set -u -e -o pipefail | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | BIN=$(cd .. && npm bin) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | $BIN/tsc -p worker/tsconfig.json | 
					
						
							|  |  |  | $BIN/rollup -c worker/rollup-worker.config.js | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | $BIN/tsc -p cli/tsconfig.json | 
					
						
							|  |  |  | $BIN/rollup -c cli/rollup-cli.config.js | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-01-29 09:23:31 -08:00
										 |  |  | cp ./safety-worker.js ../../dist/packages-dist/service-worker/safety-worker.js | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-09-28 16:18:12 -07:00
										 |  |  | echo "#!/usr/bin/env node" > ../../dist/packages-dist/service-worker/ngsw-config.js | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | cat ../../dist/packages-dist/service-worker/ngsw-config-tmp.js >> ../../dist/packages-dist/service-worker/ngsw-config.js | 
					
						
							|  |  |  | rm ../../dist/packages-dist/service-worker/ngsw-config-tmp.js |