|
1 | 1 | workspace(name = "angular_cli")
|
2 | 2 |
|
| 3 | +load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") |
3 | 4 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
4 | 5 |
|
5 |
| -# This is required by Angular Workspace |
6 | 6 | http_archive(
|
7 |
| - name = "bazel_skylib", |
8 |
| - url = "https://github.com/bazelbuild/bazel-skylib/archive/0.5.0.zip", |
9 |
| - strip_prefix = "bazel-skylib-0.5.0", |
10 |
| - sha256 = "ca4e3b8e4da9266c3a9101c8f4704fe2e20eb5625b2a6a7d2d7d45e3dd4efffd", |
| 7 | + name = "build_bazel_rules_nodejs", |
| 8 | + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/0.26.0/rules_nodejs-0.26.0.tar.gz"], |
| 9 | + sha256 = "5c86b055c57e15bf32d9009a15bcd6d8e190c41b1ff2fb18037b75e0012e4e7c", |
11 | 10 | )
|
12 | 11 |
|
13 |
| -# We get Buildifier from here. |
14 |
| -http_archive( |
15 |
| - name = "com_github_bazelbuild_buildtools", |
16 |
| - url = "https://github.com/bazelbuild/buildtools/archive/0.15.0.zip", |
17 |
| - strip_prefix = "buildtools-0.15.0", |
18 |
| - sha256 = "76d1837a86fa6ef5b4a07438f8489f00bfa1b841e5643b618e01232ba884b1fe", |
19 |
| -) |
20 |
| - |
21 |
| -# Load the TypeScript rules, its dependencies, and setup the workspace. |
22 |
| -http_archive( |
23 |
| - name = "build_bazel_rules_typescript", |
24 |
| - url = "https://github.com/bazelbuild/rules_typescript/archive/0.22.1.zip", |
25 |
| - strip_prefix = "rules_typescript-0.22.1", |
26 |
| - sha256 = "351abe89b291a3b3d6af38d9d04c6270f5d2ed8781e2fda25bc65fd12db25e66", |
27 |
| -) |
28 |
| - |
29 |
| -load("@build_bazel_rules_typescript//:package.bzl", "rules_typescript_dependencies") |
30 |
| -# build_bazel_rules_nodejs is loaded transitively through rules_typescript_dependencies. |
31 |
| -rules_typescript_dependencies() |
32 |
| - |
33 |
| -load("@com_github_bazelbuild_buildtools//buildifier:deps.bzl", "buildifier_dependencies") |
34 |
| -buildifier_dependencies() |
35 |
| - |
36 |
| -load("@io_bazel_rules_go//go:def.bzl", "go_register_toolchains", "go_rules_dependencies") |
37 |
| -go_rules_dependencies() |
38 |
| -go_register_toolchains() |
39 |
| - |
40 | 12 | # TS API Guardian resides in Angular
|
41 | 13 | http_archive(
|
42 | 14 | name = "angular",
|
43 |
| - url = "https://github.com/angular/angular/archive/7.2.0.zip", |
44 |
| - strip_prefix = "angular-7.2.0", |
45 |
| - sha256 = "8a4915a524f3fed17424da4b77cd7a943fbbddba44275f06671493339713914b", |
| 15 | + sha256 = "5a5a56c93e454b6fb3d470e2f49f6c47db85d25765fca0f26276c71c2263be38", |
| 16 | + strip_prefix = "angular-7.2.7", |
| 17 | + url = "https://github.com/angular/angular/archive/7.2.7.zip", |
46 | 18 | )
|
47 | 19 |
|
48 |
| -load("@angular//:index.bzl", "ng_setup_workspace") |
49 |
| -ng_setup_workspace() |
| 20 | +# We use protocol buffers for the Build Event Protocol |
| 21 | +git_repository( |
| 22 | + name = "com_google_protobuf", |
| 23 | + remote = "https://github.com/protocolbuffers/protobuf", |
| 24 | + commit = "b6375e03aa80274dae89410efdf46346413b2247", |
| 25 | +) |
50 | 26 |
|
51 |
| -load("@build_bazel_rules_typescript//:defs.bzl", "ts_setup_workspace") |
52 |
| -ts_setup_workspace() |
| 27 | +load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") |
| 28 | + |
| 29 | +protobuf_deps() |
53 | 30 |
|
54 | 31 | load("@build_bazel_rules_nodejs//:defs.bzl", "check_bazel_version", "node_repositories", "yarn_install")
|
55 | 32 | # 0.18.0 is needed for .bazelignore
|
@@ -92,9 +69,23 @@ yarn_install(
|
92 | 69 | ],
|
93 | 70 | )
|
94 | 71 |
|
95 |
| -http_archive( |
96 |
| - name = "rxjs", |
97 |
| - url = "https://registry.yarnpkg.com/rxjs/-/rxjs-6.3.3.tgz", |
98 |
| - strip_prefix = "package/src", |
99 |
| - sha256 = "72b0b4e517f43358f554c125e40e39f67688cd2738a8998b4a266981ed32f403", |
100 |
| -) |
| 72 | +load("@npm//:install_bazel_dependencies.bzl", "install_bazel_dependencies") |
| 73 | +install_bazel_dependencies() |
| 74 | + |
| 75 | +load("@npm_bazel_typescript//:defs.bzl", "ts_setup_workspace") |
| 76 | + |
| 77 | +ts_setup_workspace() |
| 78 | + |
| 79 | +# Load karma dependencies |
| 80 | +load("@npm_bazel_karma//:package.bzl", "rules_karma_dependencies") |
| 81 | + |
| 82 | +rules_karma_dependencies() |
| 83 | + |
| 84 | +# Setup the rules_webtesting toolchain |
| 85 | +load("@io_bazel_rules_webtesting//web:repositories.bzl", "web_test_repositories") |
| 86 | + |
| 87 | +web_test_repositories() |
| 88 | + |
| 89 | +load("@angular//:index.bzl", "ng_setup_workspace") |
| 90 | + |
| 91 | +ng_setup_workspace() |
0 commit comments