2018-02-13 11:26:06 -08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								load("//packages/bazel:index.bzl", "ng_module")
							 | 
						
					
						
							
								
									
										
										
										
											2019-01-16 10:19:01 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								load("//tools:defaults.bzl", "jasmine_node_test")
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								load(":extract_flat_module_index.bzl", "extract_flat_module_index")
							 | 
						
					
						
							
								
									
										
										
										
											2018-02-13 11:26:06 -08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								ng_module(
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    name = "test_module",
							 | 
						
					
						
							
								
									
										
										
										
											2018-10-25 20:47:28 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    testonly = True,
							 | 
						
					
						
							
								
									
										
										
										
											2018-02-13 11:26:06 -08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    srcs = glob(["*.ts"]),
							 | 
						
					
						
							
								
									
										
										
										
											2019-03-09 13:24:20 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    api_extractor = "//packages/bazel/src/api-extractor:api_extractor",
							 | 
						
					
						
							
								
									
										
										
										
											2018-10-16 13:20:00 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    compiler = "//packages/bazel/src/ngc-wrapped",
							 | 
						
					
						
							
								
									
										
										
										
											2018-02-13 11:26:06 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    entry_point = "index.ts",
							 | 
						
					
						
							
								
									
										
										
										
											2018-03-15 18:04:34 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    flat_module_out_file = "flat_module_filename",
							 | 
						
					
						
							
								
									
										
										
										
											2018-02-13 11:26:06 -08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    module_name = "some_npm_module",
							 | 
						
					
						
							
								
									
										
										
										
											2018-10-16 13:20:00 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    ng_xi18n = "//packages/bazel/src/ngc-wrapped:xi18n",
							 | 
						
					
						
							
								
									
										
										
										
											2019-02-20 09:54:42 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    node_modules = "@npm//typescript:typescript__typings",
							 | 
						
					
						
							
								
									
										
										
										
											2018-10-25 20:47:28 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    tags = [
							 | 
						
					
						
							
								
									
										
										
										
											2018-11-27 12:30:46 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        # Disabled as this test is specific to the flat module indexing of metadata.json files that
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        # the old ngc compiler does. Ivy has no metadata.json files so this test does not apply.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        "no-ivy-aot",
							 | 
						
					
						
							
								
									
										
										
										
											2018-10-25 20:47:28 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    ],
							 | 
						
					
						
							
								
									
										
										
										
											2018-10-04 13:14:14 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    deps = [
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        "//packages/core",
							 | 
						
					
						
							
								
									
										
										
										
											2019-04-02 11:42:58 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        "@npm//tslib",
							 | 
						
					
						
							
								
									
										
										
										
											2018-10-04 13:14:14 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    ],
							 | 
						
					
						
							
								
									
										
										
										
											2018-02-13 11:26:06 -08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								extract_flat_module_index(
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    name = "flat_module_index",
							 | 
						
					
						
							
								
									
										
										
										
											2018-10-25 20:47:28 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    testonly = True,
							 | 
						
					
						
							
								
									
										
										
										
											2018-02-13 11:26:06 -08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    deps = [":test_module"],
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								jasmine_node_test(
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    name = "test",
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    srcs = ["spec.js"],
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    data = [":flat_module_index"],
							 | 
						
					
						
							
								
									
										
										
										
											2018-10-15 23:24:22 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    tags = [
							 | 
						
					
						
							
								
									
										
										
										
											2018-11-27 12:30:46 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        # Disabled as this test is specific to the flat module indexing of metadata.json files that
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        # the old ngc compiler does. Ivy has no metadata.json files so this test does not apply.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        "no-ivy-aot",
							 | 
						
					
						
							
								
									
										
										
										
											2018-10-15 23:24:22 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    ],
							 | 
						
					
						
							
								
									
										
										
										
											2018-02-13 11:26:06 -08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								)
							 |