@@ -36,37 +36,36 @@ http_archive(
3636# Add sass rules
3737http_archive (
3838 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" ,
4143)
4244
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.
4747load ("@build_bazel_rules_typescript//:package.bzl" , "rules_typescript_dependencies" )
4848rules_typescript_dependencies ()
4949
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.
5452load ("@build_bazel_rules_nodejs//:package.bzl" , "rules_nodejs_dependencies" )
5553rules_nodejs_dependencies ()
5654
57- # Fetch @angular repo transitive deps that are not already fetched above
55+ # Fetch transitive dependencies which are needed by the Angular build targets.
5856load ("@angular//packages/bazel:package.bzl" , "rules_angular_dependencies" )
5957rules_angular_dependencies ()
6058
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 ()
6362
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" )
6765
6866# The minimum bazel version to use with this repo is 0.18.0
6967check_bazel_version ("0.18.0" )
68+
7069node_repositories (
7170 # For deterministic builds, specify explicit NodeJS and Yarn versions. Keep the Yarn version
7271 # in sync with the version of Travis.
@@ -88,6 +87,10 @@ yarn_install(
8887load ("@build_bazel_rules_typescript//:defs.bzl" , "ts_setup_workspace" )
8988ts_setup_workspace ()
9089
90+ # Setup the Sass rule repositories.
91+ load ("@io_bazel_rules_sass//:defs.bzl" , "sass_repositories" )
92+ sass_repositories ()
93+
9194# Setup Angular workspace for building (Bazel managed node modules)
9295load ("@angular//:index.bzl" , "ng_setup_workspace" )
9396ng_setup_workspace ()
@@ -102,7 +105,8 @@ go_register_toolchains()
102105
103106# Setup web testing. We need to setup a browser because the web testing rules for TypeScript need
104107# 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" )
106110
107111web_test_repositories ()
108112browser_repositories (
0 commit comments