1
1
workspace (name = "angular_devkit" )
2
2
3
- BAZEL_SKYLIB_VERSION = "0.3.1"
3
+ # We get Buildifier from here.
4
+ BAZEL_BUILDTOOLS_VERSION = "0.15.0"
4
5
http_archive (
5
- name = "bazel_skylib" ,
6
- url = "https://github.com/bazelbuild/bazel-skylib/archive/%s.zip" % BAZEL_SKYLIB_VERSION ,
7
- strip_prefix = "bazel-skylib-%s" % BAZEL_SKYLIB_VERSION ,
8
- sha256 = "95518adafc9a2b656667bbf517a952e54ce7f350779d0dd95133db4eb5c27fb1" ,
6
+ name = "com_github_bazelbuild_buildtools" ,
7
+ url = "https://github.com/bazelbuild/buildtools/archive/%s.zip" % BAZEL_BUILDTOOLS_VERSION ,
8
+ strip_prefix = "buildtools-%s" % BAZEL_BUILDTOOLS_VERSION ,
9
+ sha256 = "76d1837a86fa6ef5b4a07438f8489f00bfa1b841e5643b618e01232ba884b1fe" ,
10
+ )
11
+
12
+ load ("@com_github_bazelbuild_buildtools//buildifier:deps.bzl" , "buildifier_dependencies" )
13
+ buildifier_dependencies ()
14
+
15
+ # The Go toolchain is used for Buildifier.
16
+ # rules_typescript_dependencies() also tries to load it but we add it explicitely so we
17
+ # don't have hidden dependencies.
18
+ # This also means we need to load it before rules_typescript_dependencies().
19
+ RULES_GO_VERSION = "0.14.0"
20
+ http_archive (
21
+ name = "io_bazel_rules_go" ,
22
+ url = "https://github.com/bazelbuild/rules_go/archive/%s.zip" % RULES_GO_VERSION ,
23
+ strip_prefix = "rules_go-%s" % RULES_GO_VERSION ,
24
+ sha256 = "9bd7c2743f014e4e112b671098ba1da6aec036fe07093b10ca39a9f81ec5cc33" ,
9
25
)
10
26
11
- RULES_NODEJS_VERSION = "caae26b8cfc29838969e0614ebcb551a0e39ba26"
27
+ load ("@io_bazel_rules_go//go:def.bzl" , "go_register_toolchains" , "go_rules_dependencies" )
28
+ go_rules_dependencies ()
29
+ go_register_toolchains ()
30
+
31
+ # Load the NodeJS rules, check minimum Bazel version, and define the local node_modules.
32
+ RULES_NODEJS_VERSION = "0.11.5"
12
33
http_archive (
13
34
name = "build_bazel_rules_nodejs" ,
14
35
url = "https://github.com/bazelbuild/rules_nodejs/archive/%s.zip" % RULES_NODEJS_VERSION ,
15
36
strip_prefix = "rules_nodejs-%s" % RULES_NODEJS_VERSION ,
16
- sha256 = "8b6978d03f58e9ce8e3c0034afd879d621f9387f693f5a8e1888241b0538a61f " ,
37
+ sha256 = "985bf908faa72cc4638c356a99d19ccac223e5dcd8dae695e3157e5c00f53489 " ,
17
38
)
18
39
19
- load ("@build_bazel_rules_nodejs//:defs.bzl" , "check_bazel_version" , "node_repositories" )
40
+ load ("@build_bazel_rules_nodejs//:package.bzl" , "rules_nodejs_dependencies" )
41
+ rules_nodejs_dependencies ()
20
42
43
+ load ("@build_bazel_rules_nodejs//:defs.bzl" , "check_bazel_version" , "node_repositories" )
21
44
check_bazel_version ("0.15.0" )
22
-
23
45
node_repositories (package_json = ["//:package.json" ])
24
46
25
47
local_repository (
26
48
name = "rxjs" ,
27
49
path = "node_modules/rxjs/src" ,
28
50
)
29
51
30
- RULES_WEBTESTING_VERSION = "0.2.1"
31
- http_archive (
32
- name = "io_bazel_rules_webtesting" ,
33
- url = "https://github.com/bazelbuild/rules_webtesting/archive/%s.zip" % RULES_WEBTESTING_VERSION ,
34
- strip_prefix = "rules_webtesting-%s" % RULES_WEBTESTING_VERSION ,
35
- sha256 = "7d490aadff9b5262e5251fa69427ab2ffd1548422467cb9f9e1d110e2c36f0fa" ,
36
- )
37
-
38
- RULES_TYPESCRIPT_VERSION = "0.15.3"
52
+ # Load the TypeScript rules, its dependencies, and setup the workspace.
53
+ RULES_TYPESCRIPT_VERSION = "0.16.1"
39
54
http_archive (
40
55
name = "build_bazel_rules_typescript" ,
41
56
url = "https://github.com/bazelbuild/rules_typescript/archive/%s.zip" % RULES_TYPESCRIPT_VERSION ,
42
57
strip_prefix = "rules_typescript-%s" % RULES_TYPESCRIPT_VERSION ,
43
- sha256 = "a2b26ac3fc13036011196063db1bf7f1eae81334449201dc28087ebfa3708c99 " ,
58
+ sha256 = "5b2b0bc63cfcffe7bf97cad2dad3b26a73362f806de66207051f66c87956a995 " ,
44
59
)
45
60
46
- load ("@build_bazel_rules_typescript//:defs.bzl" , "ts_setup_workspace" )
61
+ load ("@build_bazel_rules_typescript//:package.bzl" , "rules_typescript_dependencies" )
62
+ rules_typescript_dependencies ()
47
63
64
+ load ("@build_bazel_rules_typescript//:defs.bzl" , "check_rules_typescript_version" ,
65
+ "ts_setup_workspace" )
66
+ check_rules_typescript_version ("0.16.1" )
48
67
ts_setup_workspace ()
49
68
50
- # We get tools like Buildifier from here
51
- BAZEL_BUILDTOOLS_VERSION = "0.15.0"
52
- http_archive (
53
- name = "com_github_bazelbuild_buildtools" ,
54
- url = "https://github.com/bazelbuild/buildtools/archive/%s.zip" % BAZEL_BUILDTOOLS_VERSION ,
55
- strip_prefix = "buildtools-%s" % BAZEL_BUILDTOOLS_VERSION ,
56
- sha256 = "76d1837a86fa6ef5b4a07438f8489f00bfa1b841e5643b618e01232ba884b1fe" ,
57
- )
58
-
59
- # The Go toolchain is used for Buildifier and some TypeScript tooling.
60
- # We need to use this commit to include Windows path fixes.
61
- RULES_GO_VERSION = "0.14.0"
62
- http_archive (
63
- name = "io_bazel_rules_go" ,
64
- url = "https://github.com/bazelbuild/rules_go/archive/%s.zip" % RULES_GO_VERSION ,
65
- strip_prefix = "rules_go-%s" % RULES_GO_VERSION ,
66
- sha256 = "9bd7c2743f014e4e112b671098ba1da6aec036fe07093b10ca39a9f81ec5cc33" ,
67
- )
68
-
69
- load ("@io_bazel_rules_go//go:def.bzl" , "go_register_toolchains" , "go_rules_dependencies" )
69
+ # # We get Buildifier from here.
70
+ # BAZEL_BUILDTOOLS_VERSION = "0.15.0"
71
+ # http_archive(
72
+ # name = "com_github_bazelbuild_buildtools",
73
+ # url = "https://github.com/bazelbuild/buildtools/archive/%s.zip" % BAZEL_BUILDTOOLS_VERSION,
74
+ # strip_prefix = "buildtools-%s" % BAZEL_BUILDTOOLS_VERSION,
75
+ # sha256 = "76d1837a86fa6ef5b4a07438f8489f00bfa1b841e5643b618e01232ba884b1fe",
76
+ # )
70
77
71
- go_rules_dependencies ()
72
-
73
- go_register_toolchains ()
78
+ # load("@com_github_bazelbuild_buildtools//buildifier:deps.bzl", "buildifier_dependencies")
79
+ # buildifier_dependencies()
0 commit comments