| 
									
										
										
										
											2017-12-06 06:56:49 -08:00
										 |  |  | package(default_visibility = ["//visibility:public"]) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-02-26 09:09:35 -08:00
										 |  |  | load("//tools:defaults.bzl", "pkg_npm", "ts_api_guardian_test", "ts_library") | 
					
						
							| 
									
										
										
										
											2019-02-20 09:54:42 -08:00
										 |  |  | load("@npm_bazel_typescript//:index.bzl", "ts_config") | 
					
						
							| 
									
										
										
										
											2017-09-25 12:40:22 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | ts_config( | 
					
						
							|  |  |  |     name = "tsconfig", | 
					
						
							|  |  |  |     src = "tsconfig-build.json", | 
					
						
							| 
									
										
										
										
											2017-12-06 06:56:49 -08:00
										 |  |  |     deps = ["//packages:tsconfig-build.json"], | 
					
						
							| 
									
										
										
										
											2017-09-25 12:40:22 -07:00
										 |  |  | ) | 
					
						
							| 
									
										
										
										
											2017-07-21 14:20:34 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | ts_library( | 
					
						
							|  |  |  |     name = "compiler-cli", | 
					
						
							| 
									
										
										
										
											2017-12-06 06:56:49 -08:00
										 |  |  |     srcs = glob( | 
					
						
							|  |  |  |         [ | 
					
						
							|  |  |  |             "*.ts", | 
					
						
							|  |  |  |             "src/**/*.ts", | 
					
						
							|  |  |  |         ], | 
					
						
							| 
									
										
										
										
											2017-12-17 21:36:21 -08:00
										 |  |  |         exclude = [ | 
					
						
							|  |  |  |             "src/integrationtest/**/*.ts", | 
					
						
							|  |  |  |         ], | 
					
						
							| 
									
										
										
										
											2017-12-06 06:56:49 -08:00
										 |  |  |     ), | 
					
						
							|  |  |  |     tsconfig = ":tsconfig", | 
					
						
							| 
									
										
										
										
											2017-07-21 14:20:34 -07:00
										 |  |  |     deps = [ | 
					
						
							| 
									
										
										
										
											2017-12-06 06:56:49 -08:00
										 |  |  |         "//packages/compiler", | 
					
						
							| 
									
										
										
										
											2020-01-17 16:00:07 -08:00
										 |  |  |         "//packages/compiler-cli/src/ngtsc/core", | 
					
						
							|  |  |  |         "//packages/compiler-cli/src/ngtsc/core:api", | 
					
						
							| 
									
										
										
										
											2018-08-23 14:33:38 -07:00
										 |  |  |         "//packages/compiler-cli/src/ngtsc/diagnostics", | 
					
						
							| 
									
										
										
										
											2019-06-06 20:22:32 +01:00
										 |  |  |         "//packages/compiler-cli/src/ngtsc/file_system", | 
					
						
							| 
									
										
										
										
											2019-06-10 09:19:35 -07:00
										 |  |  |         "//packages/compiler-cli/src/ngtsc/indexer", | 
					
						
							| 
									
										
										
										
											2019-03-18 11:16:38 -07:00
										 |  |  |         "//packages/compiler-cli/src/ngtsc/perf", | 
					
						
							| 
									
										
										
										
											2019-02-20 09:54:42 -08:00
										 |  |  |         "@npm//@bazel/typescript", | 
					
						
							| 
									
										
										
										
											2019-06-21 21:52:00 -07:00
										 |  |  |         "@npm//@types/node", | 
					
						
							| 
									
										
										
										
											2020-02-12 11:52:15 +01:00
										 |  |  |         "@npm//chokidar", | 
					
						
							| 
									
										
										
										
											2020-01-31 21:07:59 +00:00
										 |  |  |         "@npm//fs-extra", | 
					
						
							| 
									
										
										
										
											2019-11-12 23:17:06 -08:00
										 |  |  |         "@npm//minimist", | 
					
						
							| 
									
										
										
										
											2019-05-09 14:51:51 -07:00
										 |  |  |         "@npm//reflect-metadata", | 
					
						
							| 
									
										
										
										
											2019-02-20 09:54:42 -08:00
										 |  |  |         "@npm//tsickle", | 
					
						
							|  |  |  |         "@npm//typescript", | 
					
						
							| 
									
										
										
										
											2017-07-21 14:20:34 -07:00
										 |  |  |     ], | 
					
						
							|  |  |  | ) | 
					
						
							| 
									
										
										
										
											2018-03-13 11:00:53 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-12-28 16:37:59 -08:00
										 |  |  | pkg_npm( | 
					
						
							| 
									
										
										
										
											2018-03-13 11:00:53 -07:00
										 |  |  |     name = "npm_package", | 
					
						
							|  |  |  |     srcs = [ | 
					
						
							|  |  |  |         "package.json", | 
					
						
							|  |  |  |     ], | 
					
						
							| 
									
										
										
										
											2018-06-05 11:38:46 -07:00
										 |  |  |     tags = [ | 
					
						
							|  |  |  |         "release-with-framework", | 
					
						
							|  |  |  |     ], | 
					
						
							| 
									
										
										
										
											2018-12-11 16:53:42 -08:00
										 |  |  |     # Do not add more to this list. | 
					
						
							|  |  |  |     # Dependencies on the full npm_package cause long re-builds. | 
					
						
							| 
									
										
										
										
											2019-01-22 18:46:51 +01:00
										 |  |  |     visibility = [ | 
					
						
							| 
									
										
										
										
											2020-02-04 11:45:40 -08:00
										 |  |  |         "//integration:__pkg__", | 
					
						
							| 
									
										
										
										
											2019-01-22 18:46:51 +01:00
										 |  |  |         "//packages/compiler-cli/integrationtest:__pkg__", | 
					
						
							|  |  |  |     ], | 
					
						
							| 
									
										
										
										
											2018-07-16 08:49:56 +01:00
										 |  |  |     deps = [ | 
					
						
							|  |  |  |         ":compiler-cli", | 
					
						
							| 
									
										
										
										
											2019-03-20 13:47:58 +00:00
										 |  |  |         "//packages/compiler-cli/ngcc", | 
					
						
							| 
									
										
										
										
											2018-07-16 08:49:56 +01:00
										 |  |  |     ], | 
					
						
							| 
									
										
										
										
											2018-03-13 11:00:53 -07:00
										 |  |  | ) | 
					
						
							| 
									
										
										
										
											2020-02-26 09:09:35 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | ts_api_guardian_test( | 
					
						
							|  |  |  |     name = "error_code_api", | 
					
						
							| 
									
										
										
										
											2020-03-12 12:36:28 +01:00
										 |  |  |     actual = "angular/packages/compiler-cli/npm_package/src/ngtsc/diagnostics/src/error_code.d.ts", | 
					
						
							| 
									
										
										
										
											2020-02-26 09:09:35 -08:00
										 |  |  |     data = [ | 
					
						
							|  |  |  |         ":npm_package", | 
					
						
							|  |  |  |         "//goldens:public-api", | 
					
						
							|  |  |  |     ], | 
					
						
							| 
									
										
										
										
											2020-03-12 12:36:28 +01:00
										 |  |  |     golden = "angular/goldens/public-api/compiler-cli/error_code.d.ts", | 
					
						
							| 
									
										
										
										
											2020-02-26 09:09:35 -08:00
										 |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ts_api_guardian_test( | 
					
						
							|  |  |  |     name = "compiler_options_api", | 
					
						
							| 
									
										
										
										
											2020-03-12 12:36:28 +01:00
										 |  |  |     actual = "angular/packages/compiler-cli/npm_package/src/ngtsc/core/api/src/public_options.d.ts", | 
					
						
							| 
									
										
										
										
											2020-02-26 09:09:35 -08:00
										 |  |  |     data = [ | 
					
						
							|  |  |  |         ":npm_package", | 
					
						
							|  |  |  |         "//goldens:public-api", | 
					
						
							|  |  |  |     ], | 
					
						
							| 
									
										
										
										
											2020-03-12 12:36:28 +01:00
										 |  |  |     golden = "angular/goldens/public-api/compiler-cli/compiler_options.d.ts", | 
					
						
							| 
									
										
										
										
											2020-02-26 09:09:35 -08:00
										 |  |  | ) |