| 
									
										
										
										
											2017-12-19 15:03:29 -08:00
										 |  |  | workspace(name = "angular") | 
					
						
							| 
									
										
										
										
											2017-09-25 12:40:22 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-05-10 13:12:30 -07:00
										 |  |  | # | 
					
						
							|  |  |  | # Download Bazel toolchain dependencies as needed by build actions | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-02-09 10:22:00 -08:00
										 |  |  | http_archive( | 
					
						
							| 
									
										
										
										
											2017-08-22 16:56:29 -07:00
										 |  |  |     name = "build_bazel_rules_nodejs", | 
					
						
							| 
									
										
										
										
											2018-06-25 11:22:23 -07:00
										 |  |  |     url = "https://github.com/bazelbuild/rules_nodejs/archive/20ff5892612f8359aec8aaf26dd3902a24976ada.zip", | 
					
						
							|  |  |  |     strip_prefix = "rules_nodejs-20ff5892612f8359aec8aaf26dd3902a24976ada", | 
					
						
							|  |  |  |     sha256 = "07da9d4c3e688a02745d0f50709a87744706d4f5d1959b799b0ac38e97acd622", | 
					
						
							| 
									
										
										
										
											2017-06-02 09:43:52 -07:00
										 |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-05-10 13:12:30 -07:00
										 |  |  | http_archive( | 
					
						
							|  |  |  |     name = "io_bazel_rules_webtesting", | 
					
						
							| 
									
										
										
										
											2018-07-06 14:51:37 -07:00
										 |  |  |     url = "https://github.com/bazelbuild/rules_webtesting/archive/7ffe970bbf380891754487f66c3d680c087d67f2.zip", | 
					
						
							|  |  |  |     strip_prefix = "rules_webtesting-7ffe970bbf380891754487f66c3d680c087d67f2", | 
					
						
							|  |  |  |     sha256 = "4fb0dca8c9a90547891b7ef486592775a523330fc4555c88cd8f09270055c2ce", | 
					
						
							| 
									
										
										
										
											2018-04-16 14:55:47 -07:00
										 |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-02-23 09:25:29 -08:00
										 |  |  | http_archive( | 
					
						
							| 
									
										
										
										
											2017-08-22 16:56:29 -07:00
										 |  |  |     name = "build_bazel_rules_typescript", | 
					
						
							| 
									
										
										
										
											2018-07-17 06:44:28 -07:00
										 |  |  |     url = "https://github.com/bazelbuild/rules_typescript/archive/0.15.3.zip", | 
					
						
							|  |  |  |     strip_prefix = "rules_typescript-0.15.3", | 
					
						
							|  |  |  |     sha256 = "a2b26ac3fc13036011196063db1bf7f1eae81334449201dc28087ebfa3708c99", | 
					
						
							| 
									
										
										
										
											2017-12-06 06:56:49 -08:00
										 |  |  | ) | 
					
						
							| 
									
										
										
										
											2017-12-07 19:17:13 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-05-10 13:12:30 -07:00
										 |  |  | http_archive( | 
					
						
							|  |  |  |     name = "io_bazel_rules_go", | 
					
						
							|  |  |  |     url = "https://github.com/bazelbuild/rules_go/releases/download/0.10.3/rules_go-0.10.3.tar.gz", | 
					
						
							|  |  |  |     sha256 = "feba3278c13cde8d67e341a837f69a029f698d7a27ddbb2a202be7a10b22142a", | 
					
						
							| 
									
										
										
										
											2018-03-20 12:34:27 -07:00
										 |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-02-23 09:25:29 -08:00
										 |  |  | # This commit matches the version of buildifier in angular/ngcontainer | 
					
						
							|  |  |  | # If you change this, also check if it matches the version in the angular/ngcontainer | 
					
						
							|  |  |  | # version in /.circleci/config.yml | 
					
						
							| 
									
										
										
										
											2018-06-04 10:45:27 -07:00
										 |  |  | BAZEL_BUILDTOOLS_VERSION = "82b21607e00913b16fe1c51bec80232d9d6de31c" | 
					
						
							| 
									
										
										
										
											2018-02-23 09:25:29 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | http_archive( | 
					
						
							| 
									
										
										
										
											2017-12-07 19:17:13 -08:00
										 |  |  |     name = "com_github_bazelbuild_buildtools", | 
					
						
							| 
									
										
										
										
											2018-02-23 09:25:29 -08:00
										 |  |  |     url = "https://github.com/bazelbuild/buildtools/archive/%s.zip" % BAZEL_BUILDTOOLS_VERSION, | 
					
						
							|  |  |  |     strip_prefix = "buildtools-%s" % BAZEL_BUILDTOOLS_VERSION, | 
					
						
							| 
									
										
										
										
											2018-06-04 10:45:27 -07:00
										 |  |  |     sha256 = "edb24c2f9c55b10a820ec74db0564415c0cf553fa55e9fc709a6332fb6685eff", | 
					
						
							| 
									
										
										
										
											2017-12-07 19:17:13 -08:00
										 |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-01-05 10:53:55 -08:00
										 |  |  | # Fetching the Bazel source code allows us to compile the Skylark linter | 
					
						
							|  |  |  | http_archive( | 
					
						
							|  |  |  |     name = "io_bazel", | 
					
						
							| 
									
										
										
										
											2018-04-30 12:48:24 -07:00
										 |  |  |     url = "https://github.com/bazelbuild/bazel/archive/968f87900dce45a7af749a965b72dbac51b176b3.zip", | 
					
						
							|  |  |  |     strip_prefix = "bazel-968f87900dce45a7af749a965b72dbac51b176b3", | 
					
						
							|  |  |  |     sha256 = "e373d2ae24955c1254c495c9c421c009d88966565c35e4e8444c082cb1f0f48f", | 
					
						
							| 
									
										
										
										
											2018-01-05 10:53:55 -08:00
										 |  |  | ) | 
					
						
							| 
									
										
										
										
											2018-02-02 15:25:33 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | # We have a source dependency on the Devkit repository, because it's built with | 
					
						
							|  |  |  | # Bazel. | 
					
						
							|  |  |  | # This allows us to edit sources and have the effect appear immediately without | 
					
						
							|  |  |  | # re-packaging or "npm link"ing. | 
					
						
							|  |  |  | # Even better, things like aspects will visit the entire graph including | 
					
						
							|  |  |  | # ts_library rules in the devkit repository. | 
					
						
							| 
									
										
										
										
											2018-02-09 10:22:00 -08:00
										 |  |  | http_archive( | 
					
						
							| 
									
										
										
										
											2018-07-11 07:46:38 -07:00
										 |  |  |     name = "angular_cli", | 
					
						
							| 
									
										
										
										
											2018-06-20 15:58:33 -07:00
										 |  |  |     url = "https://github.com/angular/angular-cli/archive/v6.1.0-rc.0.zip", | 
					
						
							|  |  |  |     strip_prefix = "angular-cli-6.1.0-rc.0", | 
					
						
							|  |  |  |     sha256 = "8cf320ea58c321e103f39087376feea502f20eaf79c61a4fdb05c7286c8684fd", | 
					
						
							| 
									
										
										
										
											2018-02-02 15:25:33 -08:00
										 |  |  | ) | 
					
						
							| 
									
										
										
										
											2018-02-06 17:56:35 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | http_archive( | 
					
						
							|  |  |  |     name = "org_brotli", | 
					
						
							| 
									
										
										
										
											2018-05-30 11:04:26 +03:00
										 |  |  |     url = "https://github.com/google/brotli/archive/f9b8c02673c576a3e807edbf3a9328e9e7af6d7c.zip", | 
					
						
							|  |  |  |     strip_prefix = "brotli-f9b8c02673c576a3e807edbf3a9328e9e7af6d7c", | 
					
						
							|  |  |  |     sha256 = "8a517806d2b7c8505ba5c53934e7d7c70d341b68ffd268e9044d35b564a48828", | 
					
						
							| 
									
										
										
										
											2018-02-06 17:56:35 -08:00
										 |  |  | ) | 
					
						
							| 
									
										
										
										
											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-05-10 13:12:30 -07:00
										 |  |  | # | 
					
						
							|  |  |  | # Load and install our dependencies downloaded above. | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | load("@build_bazel_rules_nodejs//:defs.bzl", "check_bazel_version", "node_repositories", "yarn_install") | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-11 07:39:41 -07:00
										 |  |  | check_bazel_version("0.15.0") | 
					
						
							| 
									
										
										
										
											2018-05-10 23:35:21 -07:00
										 |  |  | node_repositories( | 
					
						
							|  |  |  |   package_json = ["//:package.json"], | 
					
						
							|  |  |  |   preserve_symlinks = True, | 
					
						
							|  |  |  | ) | 
					
						
							| 
									
										
										
										
											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() | 
					
						
							|  |  |  | go_register_toolchains() | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | load("@io_bazel_rules_webtesting//web:repositories.bzl", "browser_repositories", "web_test_repositories") | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | web_test_repositories() | 
					
						
							|  |  |  | 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-05-10 13:12:30 -07:00
										 |  |  | # | 
					
						
							|  |  |  | # Ask Bazel to manage these toolchain dependencies for us. | 
					
						
							|  |  |  | # Bazel will run `yarn install` when one of these toolchains is requested during | 
					
						
							|  |  |  | # a build. | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | yarn_install( | 
					
						
							|  |  |  |     name = "ts-api-guardian_runtime_deps", | 
					
						
							|  |  |  |     package_json = "//tools/ts-api-guardian:package.json", | 
					
						
							|  |  |  |     yarn_lock = "//tools/ts-api-guardian:yarn.lock", | 
					
						
							|  |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | yarn_install( | 
					
						
							|  |  |  |     name = "http-server_runtime_deps", | 
					
						
							|  |  |  |     package_json = "//tools/http-server:package.json", | 
					
						
							|  |  |  |     yarn_lock = "//tools/http-server:yarn.lock", | 
					
						
							|  |  |  | ) |