| 
									
										
										
										
											2018-10-04 13:14:14 -07:00
										 |  |  | load("//tools:defaults.bzl", "ng_rollup_bundle", "ts_library") | 
					
						
							| 
									
										
										
										
											2017-12-06 06:56:49 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-16 10:19:01 +01:00
										 |  |  | package(default_visibility = ["//visibility:public"]) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-12-06 06:56:49 -08:00
										 |  |  | ts_library( | 
					
						
							|  |  |  |     name = "worker", | 
					
						
							|  |  |  |     srcs = glob( | 
					
						
							|  |  |  |         [ | 
					
						
							|  |  |  |             "*.ts", | 
					
						
							|  |  |  |             "src/**/*.ts", | 
					
						
							|  |  |  |         ], | 
					
						
							|  |  |  |         exclude = ["main.ts"], | 
					
						
							|  |  |  |     ), | 
					
						
							|  |  |  |     tsconfig = ":tsconfig.json", | 
					
						
							| 
									
										
										
										
											2019-02-20 09:54:42 -08:00
										 |  |  |     deps = ["@npm//@types/node"], | 
					
						
							| 
									
										
										
										
											2017-12-06 06:56:49 -08:00
										 |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ts_library( | 
					
						
							|  |  |  |     name = "main", | 
					
						
							|  |  |  |     srcs = ["main.ts"], | 
					
						
							| 
									
										
										
										
											2018-03-30 09:45:42 -07:00
										 |  |  |     tsconfig = ":tsconfig.json", | 
					
						
							| 
									
										
										
										
											2017-12-06 06:56:49 -08:00
										 |  |  |     deps = [":worker"], | 
					
						
							|  |  |  | ) | 
					
						
							| 
									
										
										
										
											2018-03-30 09:45:42 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | ng_rollup_bundle( | 
					
						
							|  |  |  |     name = "ngsw_worker", | 
					
						
							|  |  |  |     entry_point = "packages/service-worker/worker/main.js", | 
					
						
							|  |  |  |     deps = [ | 
					
						
							|  |  |  |         ":main", | 
					
						
							|  |  |  |     ], | 
					
						
							|  |  |  | ) |