1
1
workspace (name = "angular_material" )
2
2
3
3
# Add nodejs rules
4
- git_repository (
4
+ http_archive (
5
5
name = "build_bazel_rules_nodejs" ,
6
- remote = "https://github.com/bazelbuild/rules_nodejs.git" ,
7
- commit = "0.5.1" ,
6
+ url = "https://github.com/bazelbuild/rules_nodejs/archive/0.5.3.zip" ,
7
+ strip_prefix = "rules_nodejs-0.5.3" ,
8
+ sha256 = "17a5515f59777b00cb25dbc710017a14273f825029b2ec60e0969d28914870be" ,
8
9
)
9
10
10
11
# NOTE: this rule installs nodejs, npm, and yarn, but does NOT install
11
12
# your npm dependencies. You must still run the package manager.
12
- load ("@build_bazel_rules_nodejs//:defs.bzl" , "node_repositories" )
13
+ load ("@build_bazel_rules_nodejs//:defs.bzl" , "check_bazel_version" , "node_repositories" )
14
+
15
+ check_bazel_version ("0.9.0" )
13
16
node_repositories (package_json = ["//:package.json" ])
14
17
15
18
# Add sass rules
@@ -23,10 +26,11 @@ load("@io_bazel_rules_sass//sass:sass.bzl", "sass_repositories")
23
26
sass_repositories ()
24
27
25
28
# Add TypeScript rules
26
- git_repository (
29
+ http_archive (
27
30
name = "build_bazel_rules_typescript" ,
28
- remote = "https://github.com/bazelbuild/rules_typescript.git" ,
29
- tag = "0.11.1" ,
31
+ url = "https://github.com/bazelbuild/rules_typescript/archive/0.11.1.zip" ,
32
+ strip_prefix = "rules_typescript-0.11.1" ,
33
+ sha256 = "7406bea7954e1c906f075115dfa176551a881119f6820b126ea1eacb09f34a1a" ,
30
34
)
31
35
32
36
# Setup TypeScript Bazel workspace
0 commit comments