@@ -36,37 +36,36 @@ http_archive(
36
36
# Add sass rules
37
37
http_archive (
38
38
name = "io_bazel_rules_sass" ,
39
- url = "https://github.com/bazelbuild/rules_sass/archive/1.14.1.zip" ,
40
- strip_prefix = "rules_sass-1.14.1" ,
39
+ # Explicitly depend on SHA c93cadb20753f4e4d4eabe83f8ea882bfb8f2efe because this one includes
40
+ # the major API overhaul and fix for the NodeJS source map warnings.
41
+ url = "https://github.com/bazelbuild/rules_sass/archive/c93cadb20753f4e4d4eabe83f8ea882bfb8f2efe.zip" ,
42
+ strip_prefix = "rules_sass-c93cadb20753f4e4d4eabe83f8ea882bfb8f2efe" ,
41
43
)
42
44
43
- # Since we are explitly fetching @build_bazel_rules_typescript, we should explicly
44
- # ask for its transitive deps from the version we fetched since
45
- # rules_angular_dependencies() will load transitive deps for the version
46
- # it would fetch transitively
45
+ # Since we are explitly fetching @build_bazel_rules_typescript, we should explicitly ask for
46
+ # its transitive dependencies in case those haven't been fetched yet.
47
47
load ("@build_bazel_rules_typescript//:package.bzl" , "rules_typescript_dependencies" )
48
48
rules_typescript_dependencies ()
49
49
50
- # Since we are explitly fetching @build_bazel_rules_nodejs, we should explicly
51
- # ask for its transitive deps from the version we fetched since
52
- # rules_angular_dependencies() will load transitive deps for the version
53
- # it would fetch transitively
50
+ # Since we are explitly fetching @build_bazel_rules_nodejs, we should explicitly ask for
51
+ # its transitive dependencies in case those haven't been fetched yet.
54
52
load ("@build_bazel_rules_nodejs//:package.bzl" , "rules_nodejs_dependencies" )
55
53
rules_nodejs_dependencies ()
56
54
57
- # Fetch @angular repo transitive deps that are not already fetched above
55
+ # Fetch transitive dependencies which are needed by the Angular build targets.
58
56
load ("@angular//packages/bazel:package.bzl" , "rules_angular_dependencies" )
59
57
rules_angular_dependencies ()
60
58
61
- load ("@io_bazel_rules_sass//sass:sass_repositories.bzl" , "sass_repositories" )
62
- sass_repositories ()
59
+ # Fetch transitive dependencies which are needed to use the Sass rules.
60
+ load ("@io_bazel_rules_sass//:package.bzl" , "rules_sass_dependencies" )
61
+ rules_sass_dependencies ()
63
62
64
- # NOTE: this rule installs nodejs, npm, and yarn, but does NOT install
65
- # your npm dependencies. You must still run the package manager.
66
- load ("@build_bazel_rules_nodejs//:defs.bzl" , "check_bazel_version" , "node_repositories" , "yarn_install" )
63
+ load ("@build_bazel_rules_nodejs//:defs.bzl" , "check_bazel_version" , "node_repositories" ,
64
+ "yarn_install" )
67
65
68
66
# The minimum bazel version to use with this repo is 0.18.0
69
67
check_bazel_version ("0.18.0" )
68
+
70
69
node_repositories (
71
70
# For deterministic builds, specify explicit NodeJS and Yarn versions. Keep the Yarn version
72
71
# in sync with the version of Travis.
@@ -88,6 +87,10 @@ yarn_install(
88
87
load ("@build_bazel_rules_typescript//:defs.bzl" , "ts_setup_workspace" )
89
88
ts_setup_workspace ()
90
89
90
+ # Setup the Sass rule repositories.
91
+ load ("@io_bazel_rules_sass//:defs.bzl" , "sass_repositories" )
92
+ sass_repositories ()
93
+
91
94
# Setup Angular workspace for building (Bazel managed node modules)
92
95
load ("@angular//:index.bzl" , "ng_setup_workspace" )
93
96
ng_setup_workspace ()
@@ -102,7 +105,8 @@ go_register_toolchains()
102
105
103
106
# Setup web testing. We need to setup a browser because the web testing rules for TypeScript need
104
107
# a reference to a registered browser (ideally that's a hermetic version of a browser)
105
- load ("@io_bazel_rules_webtesting//web:repositories.bzl" , "browser_repositories" , "web_test_repositories" )
108
+ load ("@io_bazel_rules_webtesting//web:repositories.bzl" , "browser_repositories" ,
109
+ "web_test_repositories" )
106
110
107
111
web_test_repositories ()
108
112
browser_repositories (
0 commit comments