| 
									
										
										
										
											2018-09-26 22:20:16 -07:00
										 |  |  | # Copyright Google Inc. All Rights Reserved. | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | # Use of this source code is governed by an MIT-style license that can be | 
					
						
							|  |  |  | # found in the LICENSE file at https://angular.io/license | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | """Package file which defines dependencies of Angular rules in skylark
 | 
					
						
							|  |  |  | """
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def rules_angular_dependencies(): | 
					
						
							| 
									
										
										
										
											2019-02-04 15:53:32 -08:00
										 |  |  |     print("""DEPRECATION WARNING:
 | 
					
						
							|  |  |  |     rules_angular_dependencies is no longer needed, and will be removed in a future release. | 
					
						
							|  |  |  |     We assume you will fetch rules_nodejs in your WORKSPACE file, and no other dependencies remain here. | 
					
						
							|  |  |  |     Simply remove any calls to this function and the corresponding call to | 
					
						
							|  |  |  |       load("@angular//:package.bzl", "rules_angular_dependencies") | 
					
						
							|  |  |  |     """)
 | 
					
						
							| 
									
										
										
										
											2018-09-26 22:20:16 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | def rules_angular_dev_dependencies(): | 
					
						
							|  |  |  |     """
 | 
					
						
							|  |  |  |     Fetch dependencies needed for local development, but not needed by users. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     These are in this file to keep version information in one place, and make the WORKSPACE | 
					
						
							|  |  |  |     shorter. | 
					
						
							|  |  |  |     """
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-02-04 15:53:32 -08:00
										 |  |  |     # Needed for Remote Execution | 
					
						
							| 
									
										
										
										
											2019-07-24 08:52:26 -07:00
										 |  |  |     # https://github.com/bazelbuild/bazel-toolchains/releases | 
					
						
							| 
									
										
										
										
											2019-02-04 15:53:32 -08:00
										 |  |  |     _maybe( | 
					
						
							|  |  |  |         http_archive, | 
					
						
							|  |  |  |         name = "bazel_toolchains", | 
					
						
							| 
									
										
										
										
											2020-02-04 16:14:21 -08:00
										 |  |  |         sha256 = "b5a8039df7119d618402472f3adff8a1bd0ae9d5e253f53fcc4c47122e91a3d2", | 
					
						
							|  |  |  |         strip_prefix = "bazel-toolchains-2.1.1", | 
					
						
							| 
									
										
										
										
											2020-01-20 20:40:34 -08:00
										 |  |  |         urls = [ | 
					
						
							| 
									
										
										
										
											2020-02-04 16:14:21 -08:00
										 |  |  |             "https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/releases/download/2.1.1/bazel-toolchains-2.1.1.tar.gz", | 
					
						
							|  |  |  |             "https://github.com/bazelbuild/bazel-toolchains/releases/download/2.1.1/bazel-toolchains-2.1.1.tar.gz", | 
					
						
							| 
									
										
										
										
											2020-01-20 20:40:34 -08:00
										 |  |  |         ], | 
					
						
							| 
									
										
										
										
											2019-01-31 22:57:45 +01:00
										 |  |  |     ) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-09-26 22:20:16 -07:00
										 |  |  |     ############################################# | 
					
						
							|  |  |  |     # Dependencies for generating documentation # | 
					
						
							|  |  |  |     ############################################# | 
					
						
							| 
									
										
										
										
											2019-12-28 18:10:06 -08:00
										 |  |  |     _maybe( | 
					
						
							|  |  |  |         http_archive, | 
					
						
							| 
									
										
										
										
											2018-10-18 09:58:38 -07:00
										 |  |  |         name = "io_bazel_rules_sass", | 
					
						
							| 
									
										
										
										
											2019-12-28 18:10:06 -08:00
										 |  |  |         sha256 = "77e241148f26d5dbb98f96fe0029d8f221c6cb75edbb83e781e08ac7f5322c5f", | 
					
						
							|  |  |  |         strip_prefix = "rules_sass-1.24.0", | 
					
						
							|  |  |  |         urls = [ | 
					
						
							|  |  |  |             "https://github.com/bazelbuild/rules_sass/archive/1.24.0.zip", | 
					
						
							|  |  |  |             "https://mirror.bazel.build/github.com/bazelbuild/rules_sass/archive/1.24.0.zip", | 
					
						
							|  |  |  |         ], | 
					
						
							| 
									
										
										
										
											2018-10-18 09:58:38 -07:00
										 |  |  |     ) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-09-26 22:20:16 -07:00
										 |  |  |     http_archive( | 
					
						
							|  |  |  |         name = "io_bazel_skydoc", | 
					
						
							| 
									
										
										
										
											2019-05-09 14:51:51 -07:00
										 |  |  |         sha256 = "f88058b43112e9bdc7fdb0abbdc17c5653268708c01194a159641119195e45c6", | 
					
						
							| 
									
										
										
										
											2018-12-01 16:08:15 -08:00
										 |  |  |         strip_prefix = "skydoc-a9550cb3ca3939cbabe3b589c57b6f531937fa99", | 
					
						
							| 
									
										
										
										
											2018-09-26 22:20:16 -07:00
										 |  |  |         # TODO: switch to upstream when https://github.com/bazelbuild/skydoc/pull/103 is merged | 
					
						
							| 
									
										
										
										
											2018-12-01 16:08:15 -08:00
										 |  |  |         url = "https://github.com/alexeagle/skydoc/archive/a9550cb3ca3939cbabe3b589c57b6f531937fa99.zip", | 
					
						
							| 
									
										
										
										
											2018-09-26 22:20:16 -07:00
										 |  |  |     ) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def _maybe(repo_rule, name, **kwargs): | 
					
						
							|  |  |  |     if name not in native.existing_rules(): | 
					
						
							|  |  |  |         repo_rule(name = name, **kwargs) |