| 
									
										
										
										
											2017-12-19 15:03:29 -08:00
										 |  |  | workspace(name = "angular") | 
					
						
							| 
									
										
										
										
											2017-09-25 12:40:22 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-09-26 22:20:16 -07:00
										 |  |  | load( | 
					
						
							|  |  |  |     "//packages/bazel:package.bzl",  | 
					
						
							|  |  |  |     "rules_angular_dependencies", | 
					
						
							|  |  |  |     "rules_angular_dev_dependencies", | 
					
						
							| 
									
										
										
										
											2018-04-25 09:23:20 -07:00
										 |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-09-26 22:20:16 -07:00
										 |  |  | # Angular Bazel users will call this function | 
					
						
							|  |  |  | rules_angular_dependencies() | 
					
						
							|  |  |  | # These are the dependencies only for us | 
					
						
							|  |  |  | rules_angular_dev_dependencies() | 
					
						
							| 
									
										
										
										
											2018-05-10 13:12:30 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-06-25 11:22:23 -07:00
										 |  |  | # | 
					
						
							|  |  |  | # Point Bazel to WORKSPACEs that live in subdirectories | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | local_repository( | 
					
						
							|  |  |  |     name = "rxjs", | 
					
						
							|  |  |  |     path = "node_modules/rxjs/src", | 
					
						
							|  |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Point to the integration test workspace just so that Bazel doesn't descend into it | 
					
						
							|  |  |  | # when expanding the //... pattern | 
					
						
							|  |  |  | local_repository( | 
					
						
							|  |  |  |     name = "bazel_integration_test", | 
					
						
							|  |  |  |     path = "integration/bazel", | 
					
						
							|  |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-09-26 22:20:16 -07:00
										 |  |  | # Prevent Bazel from trying to build rxjs under angular devkit | 
					
						
							|  |  |  | # TODO(alexeagle): remove after Bazel 0.18 upgrade | 
					
						
							|  |  |  | local_repository( | 
					
						
							|  |  |  |     name = "rxjs_ignore_nested_1", | 
					
						
							|  |  |  |     path = "node_modules/@angular-devkit/core/node_modules/rxjs/src", | 
					
						
							|  |  |  | ) | 
					
						
							|  |  |  | local_repository( | 
					
						
							|  |  |  |     name = "rxjs_ignore_nested_2", | 
					
						
							|  |  |  |     path = "node_modules/@angular-devkit/schematics/node_modules/rxjs/src", | 
					
						
							|  |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-05-10 13:12:30 -07:00
										 |  |  | # | 
					
						
							|  |  |  | # Load and install our dependencies downloaded above. | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-08-27 22:23:13 +02:00
										 |  |  | load("@build_bazel_rules_nodejs//:defs.bzl", "check_bazel_version", "node_repositories") | 
					
						
							| 
									
										
										
										
											2018-05-10 13:12:30 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-09-14 09:48:55 -07:00
										 |  |  | check_bazel_version("0.17.0", """
 | 
					
						
							| 
									
										
										
										
											2018-08-05 19:10:07 -07:00
										 |  |  | If you are on a Mac and using Homebrew, there is a breaking change to the installation in Bazel 0.16 | 
					
						
							|  |  |  | See https://blog.bazel.build/2018/08/22/bazel-homebrew.html | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | """)
 | 
					
						
							| 
									
										
										
										
											2018-09-24 13:58:23 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-05-10 23:35:21 -07:00
										 |  |  | node_repositories( | 
					
						
							| 
									
										
										
										
											2018-09-24 13:58:23 -07:00
										 |  |  |     node_version = "10.9.0", | 
					
						
							| 
									
										
										
										
											2018-09-11 18:11:32 -07:00
										 |  |  |     package_json = ["//:package.json"], | 
					
						
							|  |  |  |     preserve_symlinks = True, | 
					
						
							|  |  |  |     yarn_version = "1.9.2", | 
					
						
							| 
									
										
										
										
											2018-05-10 23:35:21 -07:00
										 |  |  | ) | 
					
						
							| 
									
										
										
										
											2018-05-10 13:12:30 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains") | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | go_rules_dependencies() | 
					
						
							| 
									
										
										
										
											2018-09-24 13:58:23 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-05-10 13:12:30 -07:00
										 |  |  | go_register_toolchains() | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | load("@io_bazel_rules_webtesting//web:repositories.bzl", "browser_repositories", "web_test_repositories") | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | web_test_repositories() | 
					
						
							| 
									
										
										
										
											2018-09-24 13:58:23 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-05-10 13:12:30 -07:00
										 |  |  | browser_repositories( | 
					
						
							|  |  |  |     chromium = True, | 
					
						
							|  |  |  |     firefox = True, | 
					
						
							|  |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | load("@build_bazel_rules_typescript//:defs.bzl", "ts_setup_workspace") | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ts_setup_workspace() | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-06-25 11:22:23 -07:00
										 |  |  | load("@angular//:index.bzl", "ng_setup_workspace") | 
					
						
							| 
									
										
										
										
											2018-05-10 23:35:21 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | ng_setup_workspace() | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-04-25 09:23:20 -07:00
										 |  |  | ################################## | 
					
						
							|  |  |  | # Skylark documentation generation | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | load("@io_bazel_rules_sass//sass:sass_repositories.bzl", "sass_repositories") | 
					
						
							| 
									
										
										
										
											2018-09-24 13:58:23 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-04-25 09:23:20 -07:00
										 |  |  | sass_repositories() | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | load("@io_bazel_skydoc//skylark:skylark.bzl", "skydoc_repositories") | 
					
						
							| 
									
										
										
										
											2018-09-24 13:58:23 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-04-25 09:23:20 -07:00
										 |  |  | skydoc_repositories() |