From 230fd2f6ac2b0647c6c577583d407ea22da522d8 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Fri, 4 Oct 2019 18:58:47 +0200 Subject: [PATCH] build: disable sourcemap generation for all sass binaries (#17291) We need to disable sourcemap generation for all sass binaries as otherwise the inline source map comment will be inlined into component `styles` in the release output. Technically this is not a big deal for AOT compilation where those source-map strings are omitted anyway, but for JIT it will contribute in payload size, and with the current state of Angular Package Format, these source-maps would point to non-existent files anyway. We should just not generate these sourcemaps/comments similarly to our Gulp release output. --- src/cdk-experimental/dialog/BUILD.bazel | 3 +-- src/cdk/BUILD.bazel | 4 ---- src/cdk/a11y/BUILD.bazel | 3 ++- src/cdk/overlay/BUILD.bazel | 3 ++- src/cdk/scrolling/BUILD.bazel | 2 +- src/cdk/text-field/BUILD.bazel | 3 ++- src/dev-app/BUILD.bazel | 3 +-- src/dev-app/autocomplete/BUILD.bazel | 3 +-- src/dev-app/badge/BUILD.bazel | 3 +-- src/dev-app/baseline/BUILD.bazel | 3 +-- src/dev-app/bottom-sheet/BUILD.bazel | 3 +-- src/dev-app/button-toggle/BUILD.bazel | 3 +-- src/dev-app/button/BUILD.bazel | 3 +-- src/dev-app/card/BUILD.bazel | 3 +-- src/dev-app/checkbox/BUILD.bazel | 3 +-- src/dev-app/chips/BUILD.bazel | 3 +-- src/dev-app/connected-overlay/BUILD.bazel | 3 +-- src/dev-app/datepicker/BUILD.bazel | 3 +-- src/dev-app/dev-app/BUILD.bazel | 3 +-- src/dev-app/dialog/BUILD.bazel | 3 +-- src/dev-app/drag-drop/BUILD.bazel | 3 +-- src/dev-app/drawer/BUILD.bazel | 3 +-- src/dev-app/expansion/BUILD.bazel | 3 +-- src/dev-app/focus-origin/BUILD.bazel | 3 +-- src/dev-app/grid-list/BUILD.bazel | 3 +-- src/dev-app/icon/BUILD.bazel | 3 +-- src/dev-app/input/BUILD.bazel | 3 +-- src/dev-app/list/BUILD.bazel | 3 +-- src/dev-app/mdc-button/BUILD.bazel | 3 +-- src/dev-app/mdc-card/BUILD.bazel | 3 +-- src/dev-app/mdc-checkbox/BUILD.bazel | 3 +-- src/dev-app/mdc-chips/BUILD.bazel | 3 +-- src/dev-app/mdc-menu/BUILD.bazel | 3 +-- src/dev-app/mdc-progress-bar/BUILD.bazel | 3 +-- src/dev-app/mdc-radio/BUILD.bazel | 3 +-- src/dev-app/mdc-slide-toggle/BUILD.bazel | 3 +-- src/dev-app/mdc-tabs/BUILD.bazel | 3 +-- src/dev-app/menu/BUILD.bazel | 3 +-- src/dev-app/paginator/BUILD.bazel | 3 +-- src/dev-app/portal/BUILD.bazel | 3 +-- src/dev-app/progress-bar/BUILD.bazel | 3 +-- src/dev-app/progress-spinner/BUILD.bazel | 3 +-- src/dev-app/radio/BUILD.bazel | 3 +-- src/dev-app/ripple/BUILD.bazel | 3 +-- src/dev-app/screen-type/BUILD.bazel | 3 +-- src/dev-app/select/BUILD.bazel | 3 +-- src/dev-app/sidenav/BUILD.bazel | 3 +-- src/dev-app/slide-toggle/BUILD.bazel | 3 +-- src/dev-app/snack-bar/BUILD.bazel | 3 +-- src/dev-app/toolbar/BUILD.bazel | 3 +-- src/dev-app/tree/BUILD.bazel | 3 +-- src/dev-app/typography/BUILD.bazel | 3 +-- src/dev-app/virtual-scroll/BUILD.bazel | 3 +-- src/dev-app/youtube-player/BUILD.bazel | 3 +-- src/e2e-app/BUILD.bazel | 3 +-- .../mdc-autocomplete/BUILD.bazel | 3 +-- src/material-experimental/mdc-button/BUILD.bazel | 11 +++++++++-- src/material-experimental/mdc-card/BUILD.bazel | 3 +-- src/material-experimental/mdc-checkbox/BUILD.bazel | 11 +++++++++-- src/material-experimental/mdc-chips/BUILD.bazel | 10 ++++++++-- src/material-experimental/mdc-helpers/BUILD.bazel | 3 +-- src/material-experimental/mdc-menu/BUILD.bazel | 11 +++++++++-- .../mdc-progress-bar/BUILD.bazel | 11 +++++++++-- src/material-experimental/mdc-radio/BUILD.bazel | 9 +++++++-- src/material-experimental/mdc-select/BUILD.bazel | 9 +++++++-- src/material-experimental/mdc-sidenav/BUILD.bazel | 3 +-- .../mdc-slide-toggle/BUILD.bazel | 11 +++++++++-- src/material-experimental/mdc-slider/BUILD.bazel | 11 +++++++++-- src/material-experimental/mdc-tabs/BUILD.bazel | 11 +++++++++-- src/material-experimental/mdc-theming/BUILD.bazel | 2 +- src/material-experimental/mdc-typography/BUILD.bazel | 2 +- src/material-experimental/popover-edit/BUILD.bazel | 9 +++++++-- src/material/autocomplete/BUILD.bazel | 3 ++- src/material/badge/BUILD.bazel | 2 +- src/material/bottom-sheet/BUILD.bazel | 3 ++- src/material/button-toggle/BUILD.bazel | 3 ++- src/material/button/BUILD.bazel | 3 ++- src/material/card/BUILD.bazel | 10 ++++++++-- src/material/checkbox/BUILD.bazel | 3 ++- src/material/chips/BUILD.bazel | 3 ++- src/material/core/BUILD.bazel | 3 ++- src/material/datepicker/BUILD.bazel | 3 ++- src/material/dialog/BUILD.bazel | 3 ++- src/material/divider/BUILD.bazel | 3 ++- src/material/expansion/BUILD.bazel | 3 ++- src/material/form-field/BUILD.bazel | 9 +++++++-- src/material/grid-list/BUILD.bazel | 3 ++- src/material/icon/BUILD.bazel | 3 ++- src/material/input/BUILD.bazel | 2 +- src/material/list/BUILD.bazel | 3 ++- src/material/menu/BUILD.bazel | 3 ++- src/material/paginator/BUILD.bazel | 3 ++- src/material/progress-bar/BUILD.bazel | 3 ++- src/material/progress-spinner/BUILD.bazel | 3 ++- src/material/radio/BUILD.bazel | 3 ++- src/material/select/BUILD.bazel | 3 ++- src/material/sidenav/BUILD.bazel | 3 ++- src/material/slide-toggle/BUILD.bazel | 3 ++- src/material/slider/BUILD.bazel | 3 ++- src/material/snack-bar/BUILD.bazel | 3 ++- src/material/sort/BUILD.bazel | 3 ++- src/material/stepper/BUILD.bazel | 3 ++- src/material/table/BUILD.bazel | 3 ++- src/material/tabs/BUILD.bazel | 3 ++- src/material/toolbar/BUILD.bazel | 3 ++- src/material/tooltip/BUILD.bazel | 3 ++- src/material/tree/BUILD.bazel | 3 ++- src/universal-app/BUILD.bazel | 3 +-- tools/defaults.bzl | 10 ++++++++++ tools/sass_generate_binaries.bzl | 2 +- 110 files changed, 246 insertions(+), 180 deletions(-) diff --git a/src/cdk-experimental/dialog/BUILD.bazel b/src/cdk-experimental/dialog/BUILD.bazel index 77517fb2fce7..c8c1fe669a66 100644 --- a/src/cdk-experimental/dialog/BUILD.bazel +++ b/src/cdk-experimental/dialog/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite") +load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite", "sass_binary") ng_module( name = "dialog", diff --git a/src/cdk/BUILD.bazel b/src/cdk/BUILD.bazel index 32fa89688504..4aa3846d34c1 100644 --- a/src/cdk/BUILD.bazel +++ b/src/cdk/BUILD.bazel @@ -26,10 +26,6 @@ rerootedStyles = [file for target in CDK_ENTRYPOINTS_WITH_STYLES for file in [ "%s-prebuilt.css" % target, target, ], - [ - "%s-prebuilt.css.map" % target, - target, - ], ]] # Create genrules which re-root stylesheets from secondary entry-points. diff --git a/src/cdk/a11y/BUILD.bazel b/src/cdk/a11y/BUILD.bazel index 4dcaea7ea3c8..e3555b6ab2d0 100644 --- a/src/cdk/a11y/BUILD.bazel +++ b/src/cdk/a11y/BUILD.bazel @@ -1,12 +1,13 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load( "//tools:defaults.bzl", "markdown_to_html", "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_binary", + "sass_library", ) ng_module( diff --git a/src/cdk/overlay/BUILD.bazel b/src/cdk/overlay/BUILD.bazel index 4374492e6954..1763a1d8ebb4 100644 --- a/src/cdk/overlay/BUILD.bazel +++ b/src/cdk/overlay/BUILD.bazel @@ -1,6 +1,5 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load("//src/e2e-app:test_suite.bzl", "e2e_test_suite") load( "//tools:defaults.bzl", @@ -9,6 +8,8 @@ load( "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_binary", + "sass_library", ) ng_module( diff --git a/src/cdk/scrolling/BUILD.bazel b/src/cdk/scrolling/BUILD.bazel index b999b974de49..5af8a2ba1600 100644 --- a/src/cdk/scrolling/BUILD.bazel +++ b/src/cdk/scrolling/BUILD.bazel @@ -1,12 +1,12 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") load( "//tools:defaults.bzl", "markdown_to_html", "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_binary", ) ng_module( diff --git a/src/cdk/text-field/BUILD.bazel b/src/cdk/text-field/BUILD.bazel index d49909d1f4b1..6d8378d383aa 100644 --- a/src/cdk/text-field/BUILD.bazel +++ b/src/cdk/text-field/BUILD.bazel @@ -1,12 +1,13 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load( "//tools:defaults.bzl", "markdown_to_html", "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_binary", + "sass_library", ) ng_module( diff --git a/src/dev-app/BUILD.bazel b/src/dev-app/BUILD.bazel index b346719aaad8..40eecf8684a1 100644 --- a/src/dev-app/BUILD.bazel +++ b/src/dev-app/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") load("//tools/dev-server:index.bzl", "dev_server") ng_module( diff --git a/src/dev-app/autocomplete/BUILD.bazel b/src/dev-app/autocomplete/BUILD.bazel index d998d1f5f46a..64ae3633a7ae 100644 --- a/src/dev-app/autocomplete/BUILD.bazel +++ b/src/dev-app/autocomplete/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "autocomplete", diff --git a/src/dev-app/badge/BUILD.bazel b/src/dev-app/badge/BUILD.bazel index ffa5d3dfc0ff..35c793a75ccc 100644 --- a/src/dev-app/badge/BUILD.bazel +++ b/src/dev-app/badge/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "badge", diff --git a/src/dev-app/baseline/BUILD.bazel b/src/dev-app/baseline/BUILD.bazel index 4d030f3469a2..4e9d1fb068f5 100644 --- a/src/dev-app/baseline/BUILD.bazel +++ b/src/dev-app/baseline/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "baseline", diff --git a/src/dev-app/bottom-sheet/BUILD.bazel b/src/dev-app/bottom-sheet/BUILD.bazel index d8286797d284..e9b3f44bfc72 100644 --- a/src/dev-app/bottom-sheet/BUILD.bazel +++ b/src/dev-app/bottom-sheet/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "bottom-sheet", diff --git a/src/dev-app/button-toggle/BUILD.bazel b/src/dev-app/button-toggle/BUILD.bazel index 171a80d250d3..82bd95d02e2c 100644 --- a/src/dev-app/button-toggle/BUILD.bazel +++ b/src/dev-app/button-toggle/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "button-toggle", diff --git a/src/dev-app/button/BUILD.bazel b/src/dev-app/button/BUILD.bazel index b91923c1d138..2f0d57d3042f 100644 --- a/src/dev-app/button/BUILD.bazel +++ b/src/dev-app/button/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "button", diff --git a/src/dev-app/card/BUILD.bazel b/src/dev-app/card/BUILD.bazel index a808a2457ca5..118ad31d9503 100644 --- a/src/dev-app/card/BUILD.bazel +++ b/src/dev-app/card/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "card", diff --git a/src/dev-app/checkbox/BUILD.bazel b/src/dev-app/checkbox/BUILD.bazel index 16ed229b7646..e4221ee1de05 100644 --- a/src/dev-app/checkbox/BUILD.bazel +++ b/src/dev-app/checkbox/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "checkbox", diff --git a/src/dev-app/chips/BUILD.bazel b/src/dev-app/chips/BUILD.bazel index a03573acb3f5..893ed4122806 100644 --- a/src/dev-app/chips/BUILD.bazel +++ b/src/dev-app/chips/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "chips", diff --git a/src/dev-app/connected-overlay/BUILD.bazel b/src/dev-app/connected-overlay/BUILD.bazel index a2a435c339c9..53e955149d77 100644 --- a/src/dev-app/connected-overlay/BUILD.bazel +++ b/src/dev-app/connected-overlay/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "connected-overlay", diff --git a/src/dev-app/datepicker/BUILD.bazel b/src/dev-app/datepicker/BUILD.bazel index 9f967326de4d..465a07a26709 100644 --- a/src/dev-app/datepicker/BUILD.bazel +++ b/src/dev-app/datepicker/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "datepicker", diff --git a/src/dev-app/dev-app/BUILD.bazel b/src/dev-app/dev-app/BUILD.bazel index c7911dfa8169..b3af9efd41bd 100644 --- a/src/dev-app/dev-app/BUILD.bazel +++ b/src/dev-app/dev-app/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "dev-app", diff --git a/src/dev-app/dialog/BUILD.bazel b/src/dev-app/dialog/BUILD.bazel index 0e54cbc81214..077a7f867d1c 100644 --- a/src/dev-app/dialog/BUILD.bazel +++ b/src/dev-app/dialog/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "dialog", diff --git a/src/dev-app/drag-drop/BUILD.bazel b/src/dev-app/drag-drop/BUILD.bazel index 30136dc9c09b..8597536998c0 100644 --- a/src/dev-app/drag-drop/BUILD.bazel +++ b/src/dev-app/drag-drop/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "drag-drop", diff --git a/src/dev-app/drawer/BUILD.bazel b/src/dev-app/drawer/BUILD.bazel index 5a35abc39c82..6017e5ac33e0 100644 --- a/src/dev-app/drawer/BUILD.bazel +++ b/src/dev-app/drawer/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "drawer", diff --git a/src/dev-app/expansion/BUILD.bazel b/src/dev-app/expansion/BUILD.bazel index ad0d6743925c..1a9a688bca31 100644 --- a/src/dev-app/expansion/BUILD.bazel +++ b/src/dev-app/expansion/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "expansion", diff --git a/src/dev-app/focus-origin/BUILD.bazel b/src/dev-app/focus-origin/BUILD.bazel index 464cc39fbfaf..f7e8a68699a6 100644 --- a/src/dev-app/focus-origin/BUILD.bazel +++ b/src/dev-app/focus-origin/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "focus-origin", diff --git a/src/dev-app/grid-list/BUILD.bazel b/src/dev-app/grid-list/BUILD.bazel index f989235edd94..a6e074f06561 100644 --- a/src/dev-app/grid-list/BUILD.bazel +++ b/src/dev-app/grid-list/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "grid-list", diff --git a/src/dev-app/icon/BUILD.bazel b/src/dev-app/icon/BUILD.bazel index 5ffef8b9e402..1dd3ccc061ec 100644 --- a/src/dev-app/icon/BUILD.bazel +++ b/src/dev-app/icon/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "icon", diff --git a/src/dev-app/input/BUILD.bazel b/src/dev-app/input/BUILD.bazel index 19fa99a27437..16aa7405dfb8 100644 --- a/src/dev-app/input/BUILD.bazel +++ b/src/dev-app/input/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "input", diff --git a/src/dev-app/list/BUILD.bazel b/src/dev-app/list/BUILD.bazel index 54f8125df2cd..39028a64bc33 100644 --- a/src/dev-app/list/BUILD.bazel +++ b/src/dev-app/list/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "list", diff --git a/src/dev-app/mdc-button/BUILD.bazel b/src/dev-app/mdc-button/BUILD.bazel index e90af4fac1c4..cbd11e9a2d1d 100644 --- a/src/dev-app/mdc-button/BUILD.bazel +++ b/src/dev-app/mdc-button/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "mdc-button", diff --git a/src/dev-app/mdc-card/BUILD.bazel b/src/dev-app/mdc-card/BUILD.bazel index f6e4270157ed..905a5109eb2c 100644 --- a/src/dev-app/mdc-card/BUILD.bazel +++ b/src/dev-app/mdc-card/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "mdc-card", diff --git a/src/dev-app/mdc-checkbox/BUILD.bazel b/src/dev-app/mdc-checkbox/BUILD.bazel index 9188cb4844d5..fdaeb41a7437 100644 --- a/src/dev-app/mdc-checkbox/BUILD.bazel +++ b/src/dev-app/mdc-checkbox/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "mdc-checkbox", diff --git a/src/dev-app/mdc-chips/BUILD.bazel b/src/dev-app/mdc-chips/BUILD.bazel index 41a224a4b2cb..4fded97636f5 100644 --- a/src/dev-app/mdc-chips/BUILD.bazel +++ b/src/dev-app/mdc-chips/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "mdc-chips", diff --git a/src/dev-app/mdc-menu/BUILD.bazel b/src/dev-app/mdc-menu/BUILD.bazel index b09c0cf896c9..3fcf2f3f9238 100644 --- a/src/dev-app/mdc-menu/BUILD.bazel +++ b/src/dev-app/mdc-menu/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "mdc-menu", diff --git a/src/dev-app/mdc-progress-bar/BUILD.bazel b/src/dev-app/mdc-progress-bar/BUILD.bazel index 938496cfdcf8..ed63000bb66f 100644 --- a/src/dev-app/mdc-progress-bar/BUILD.bazel +++ b/src/dev-app/mdc-progress-bar/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "mdc-progress-bar", diff --git a/src/dev-app/mdc-radio/BUILD.bazel b/src/dev-app/mdc-radio/BUILD.bazel index 7cd18bbb7fb5..bf8a509c4b31 100644 --- a/src/dev-app/mdc-radio/BUILD.bazel +++ b/src/dev-app/mdc-radio/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "mdc-radio", diff --git a/src/dev-app/mdc-slide-toggle/BUILD.bazel b/src/dev-app/mdc-slide-toggle/BUILD.bazel index c57bdd8fcf59..0c87ed88960b 100644 --- a/src/dev-app/mdc-slide-toggle/BUILD.bazel +++ b/src/dev-app/mdc-slide-toggle/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "mdc-slide-toggle", diff --git a/src/dev-app/mdc-tabs/BUILD.bazel b/src/dev-app/mdc-tabs/BUILD.bazel index e5da8e60e11c..9be4a4c6ec81 100644 --- a/src/dev-app/mdc-tabs/BUILD.bazel +++ b/src/dev-app/mdc-tabs/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "mdc-tabs", diff --git a/src/dev-app/menu/BUILD.bazel b/src/dev-app/menu/BUILD.bazel index e7570cda5131..a58e0bb262f1 100644 --- a/src/dev-app/menu/BUILD.bazel +++ b/src/dev-app/menu/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "menu", diff --git a/src/dev-app/paginator/BUILD.bazel b/src/dev-app/paginator/BUILD.bazel index c2172ed5c93f..31ce69545973 100644 --- a/src/dev-app/paginator/BUILD.bazel +++ b/src/dev-app/paginator/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "paginator", diff --git a/src/dev-app/portal/BUILD.bazel b/src/dev-app/portal/BUILD.bazel index 655763fddb36..aca954f04066 100644 --- a/src/dev-app/portal/BUILD.bazel +++ b/src/dev-app/portal/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "portal", diff --git a/src/dev-app/progress-bar/BUILD.bazel b/src/dev-app/progress-bar/BUILD.bazel index 24759a868ecb..8582fbe20e2b 100644 --- a/src/dev-app/progress-bar/BUILD.bazel +++ b/src/dev-app/progress-bar/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "progress-bar", diff --git a/src/dev-app/progress-spinner/BUILD.bazel b/src/dev-app/progress-spinner/BUILD.bazel index 97aadd738fd8..8f0d60c7a0d0 100644 --- a/src/dev-app/progress-spinner/BUILD.bazel +++ b/src/dev-app/progress-spinner/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "progress-spinner", diff --git a/src/dev-app/radio/BUILD.bazel b/src/dev-app/radio/BUILD.bazel index 1dbfb7498273..0e60e3399b8d 100644 --- a/src/dev-app/radio/BUILD.bazel +++ b/src/dev-app/radio/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "radio", diff --git a/src/dev-app/ripple/BUILD.bazel b/src/dev-app/ripple/BUILD.bazel index 610a44684fe8..432403cc3346 100644 --- a/src/dev-app/ripple/BUILD.bazel +++ b/src/dev-app/ripple/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "ripple", diff --git a/src/dev-app/screen-type/BUILD.bazel b/src/dev-app/screen-type/BUILD.bazel index 58796d6ffac7..5a0fd2639cf9 100644 --- a/src/dev-app/screen-type/BUILD.bazel +++ b/src/dev-app/screen-type/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "screen-type", diff --git a/src/dev-app/select/BUILD.bazel b/src/dev-app/select/BUILD.bazel index cfb65d62d205..f012e2170855 100644 --- a/src/dev-app/select/BUILD.bazel +++ b/src/dev-app/select/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "select", diff --git a/src/dev-app/sidenav/BUILD.bazel b/src/dev-app/sidenav/BUILD.bazel index 38ca33c7ec88..22c23a01c893 100644 --- a/src/dev-app/sidenav/BUILD.bazel +++ b/src/dev-app/sidenav/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "sidenav", diff --git a/src/dev-app/slide-toggle/BUILD.bazel b/src/dev-app/slide-toggle/BUILD.bazel index 25911e12c6ca..05f858d4bb6d 100644 --- a/src/dev-app/slide-toggle/BUILD.bazel +++ b/src/dev-app/slide-toggle/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "slide-toggle", diff --git a/src/dev-app/snack-bar/BUILD.bazel b/src/dev-app/snack-bar/BUILD.bazel index 444b57a0c24c..a17aea0fea89 100644 --- a/src/dev-app/snack-bar/BUILD.bazel +++ b/src/dev-app/snack-bar/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "snack-bar", diff --git a/src/dev-app/toolbar/BUILD.bazel b/src/dev-app/toolbar/BUILD.bazel index 9cc46eb716e2..78ffdcd42fc7 100644 --- a/src/dev-app/toolbar/BUILD.bazel +++ b/src/dev-app/toolbar/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "toolbar", diff --git a/src/dev-app/tree/BUILD.bazel b/src/dev-app/tree/BUILD.bazel index 8a6b17946edf..cb9ac7d0ab74 100644 --- a/src/dev-app/tree/BUILD.bazel +++ b/src/dev-app/tree/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "tree", diff --git a/src/dev-app/typography/BUILD.bazel b/src/dev-app/typography/BUILD.bazel index 9098b6715453..829753d313c8 100644 --- a/src/dev-app/typography/BUILD.bazel +++ b/src/dev-app/typography/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "typography", diff --git a/src/dev-app/virtual-scroll/BUILD.bazel b/src/dev-app/virtual-scroll/BUILD.bazel index 69b4b50851dc..dd126c8e38b4 100644 --- a/src/dev-app/virtual-scroll/BUILD.bazel +++ b/src/dev-app/virtual-scroll/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "virtual-scroll", diff --git a/src/dev-app/youtube-player/BUILD.bazel b/src/dev-app/youtube-player/BUILD.bazel index d2fa02dc53f4..8f5a28171647 100644 --- a/src/dev-app/youtube-player/BUILD.bazel +++ b/src/dev-app/youtube-player/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") ng_module( name = "youtube-player", diff --git a/src/e2e-app/BUILD.bazel b/src/e2e-app/BUILD.bazel index d6b85ac7e610..3db607249ad6 100644 --- a/src/e2e-app/BUILD.bazel +++ b/src/e2e-app/BUILD.bazel @@ -1,9 +1,8 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") load("@npm_bazel_typescript//:index.bzl", "ts_devserver") load("//:packages.bzl", "ANGULAR_LIBRARY_UMDS") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_binary") exports_files([ "protractor.conf.js", diff --git a/src/material-experimental/mdc-autocomplete/BUILD.bazel b/src/material-experimental/mdc-autocomplete/BUILD.bazel index 556b9e001a80..8d38cb12354f 100644 --- a/src/material-experimental/mdc-autocomplete/BUILD.bazel +++ b/src/material-experimental/mdc-autocomplete/BUILD.bazel @@ -1,8 +1,7 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load("//src/e2e-app:test_suite.bzl", "e2e_test_suite") -load("//tools:defaults.bzl", "ng_e2e_test_library", "ng_module") +load("//tools:defaults.bzl", "ng_e2e_test_library", "ng_module", "sass_binary", "sass_library") ng_module( name = "mdc-autocomplete", diff --git a/src/material-experimental/mdc-button/BUILD.bazel b/src/material-experimental/mdc-button/BUILD.bazel index c2c8068fea82..2def549db87c 100644 --- a/src/material-experimental/mdc-button/BUILD.bazel +++ b/src/material-experimental/mdc-button/BUILD.bazel @@ -1,8 +1,15 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load("//src/e2e-app:test_suite.bzl", "e2e_test_suite") -load("//tools:defaults.bzl", "ng_e2e_test_library", "ng_module", "ng_test_library", "ng_web_test_suite") +load( + "//tools:defaults.bzl", + "ng_e2e_test_library", + "ng_module", + "ng_test_library", + "ng_web_test_suite", + "sass_binary", + "sass_library", +) ng_module( name = "mdc-button", diff --git a/src/material-experimental/mdc-card/BUILD.bazel b/src/material-experimental/mdc-card/BUILD.bazel index cb6635d5e79a..a6ae8b2ea2ef 100644 --- a/src/material-experimental/mdc-card/BUILD.bazel +++ b/src/material-experimental/mdc-card/BUILD.bazel @@ -1,8 +1,7 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load("//src/e2e-app:test_suite.bzl", "e2e_test_suite") -load("//tools:defaults.bzl", "ng_e2e_test_library", "ng_module") +load("//tools:defaults.bzl", "ng_e2e_test_library", "ng_module", "sass_binary", "sass_library") ng_module( name = "mdc-card", diff --git a/src/material-experimental/mdc-checkbox/BUILD.bazel b/src/material-experimental/mdc-checkbox/BUILD.bazel index 5b4c242a1b99..f8647d97c85b 100644 --- a/src/material-experimental/mdc-checkbox/BUILD.bazel +++ b/src/material-experimental/mdc-checkbox/BUILD.bazel @@ -1,8 +1,15 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load("//src/e2e-app:test_suite.bzl", "e2e_test_suite") -load("//tools:defaults.bzl", "ng_e2e_test_library", "ng_module", "ng_test_library", "ng_web_test_suite") +load( + "//tools:defaults.bzl", + "ng_e2e_test_library", + "ng_module", + "ng_test_library", + "ng_web_test_suite", + "sass_binary", + "sass_library", +) ng_module( name = "mdc-checkbox", diff --git a/src/material-experimental/mdc-chips/BUILD.bazel b/src/material-experimental/mdc-chips/BUILD.bazel index 354d58e1404b..143c756d787e 100644 --- a/src/material-experimental/mdc-chips/BUILD.bazel +++ b/src/material-experimental/mdc-chips/BUILD.bazel @@ -1,7 +1,13 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") -load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite") +load( + "//tools:defaults.bzl", + "ng_module", + "ng_test_library", + "ng_web_test_suite", + "sass_binary", + "sass_library", +) ng_module( name = "mdc-chips", diff --git a/src/material-experimental/mdc-helpers/BUILD.bazel b/src/material-experimental/mdc-helpers/BUILD.bazel index cc535615f64b..b371ad3398e8 100644 --- a/src/material-experimental/mdc-helpers/BUILD.bazel +++ b/src/material-experimental/mdc-helpers/BUILD.bazel @@ -1,7 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_library") -load("//tools:defaults.bzl", "ng_module") +load("//tools:defaults.bzl", "ng_module", "sass_library") ng_module( name = "mdc-helpers", diff --git a/src/material-experimental/mdc-menu/BUILD.bazel b/src/material-experimental/mdc-menu/BUILD.bazel index b6572ce11092..1c2eba62eb0c 100644 --- a/src/material-experimental/mdc-menu/BUILD.bazel +++ b/src/material-experimental/mdc-menu/BUILD.bazel @@ -1,8 +1,15 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load("//src/e2e-app:test_suite.bzl", "e2e_test_suite") -load("//tools:defaults.bzl", "ng_e2e_test_library", "ng_module", "ng_test_library", "ng_web_test_suite") +load( + "//tools:defaults.bzl", + "ng_e2e_test_library", + "ng_module", + "ng_test_library", + "ng_web_test_suite", + "sass_binary", + "sass_library", +) ng_module( name = "mdc-menu", diff --git a/src/material-experimental/mdc-progress-bar/BUILD.bazel b/src/material-experimental/mdc-progress-bar/BUILD.bazel index ca39425ab0e3..9cc3d70e8dc7 100644 --- a/src/material-experimental/mdc-progress-bar/BUILD.bazel +++ b/src/material-experimental/mdc-progress-bar/BUILD.bazel @@ -1,8 +1,15 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load("//src/e2e-app:test_suite.bzl", "e2e_test_suite") -load("//tools:defaults.bzl", "ng_e2e_test_library", "ng_module", "ng_test_library", "ng_web_test_suite") +load( + "//tools:defaults.bzl", + "ng_e2e_test_library", + "ng_module", + "ng_test_library", + "ng_web_test_suite", + "sass_binary", + "sass_library", +) ng_module( name = "mdc-progress-bar", diff --git a/src/material-experimental/mdc-radio/BUILD.bazel b/src/material-experimental/mdc-radio/BUILD.bazel index 3ee657e8ec96..47ef1cf5840f 100644 --- a/src/material-experimental/mdc-radio/BUILD.bazel +++ b/src/material-experimental/mdc-radio/BUILD.bazel @@ -1,8 +1,13 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load("//src/e2e-app:test_suite.bzl", "e2e_test_suite") -load("//tools:defaults.bzl", "ng_e2e_test_library", "ng_module") +load( + "//tools:defaults.bzl", + "ng_e2e_test_library", + "ng_module", + "sass_binary", + "sass_library", +) ng_module( name = "mdc-radio", diff --git a/src/material-experimental/mdc-select/BUILD.bazel b/src/material-experimental/mdc-select/BUILD.bazel index 13b8ccd56343..1b94ca2128db 100644 --- a/src/material-experimental/mdc-select/BUILD.bazel +++ b/src/material-experimental/mdc-select/BUILD.bazel @@ -1,8 +1,13 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load("//src/e2e-app:test_suite.bzl", "e2e_test_suite") -load("//tools:defaults.bzl", "ng_e2e_test_library", "ng_module") +load( + "//tools:defaults.bzl", + "ng_e2e_test_library", + "ng_module", + "sass_binary", + "sass_library", +) ng_module( name = "mdc-select", diff --git a/src/material-experimental/mdc-sidenav/BUILD.bazel b/src/material-experimental/mdc-sidenav/BUILD.bazel index 0231d6d7763d..21aaa24ab12d 100644 --- a/src/material-experimental/mdc-sidenav/BUILD.bazel +++ b/src/material-experimental/mdc-sidenav/BUILD.bazel @@ -1,8 +1,7 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load("//src/e2e-app:test_suite.bzl", "e2e_test_suite") -load("//tools:defaults.bzl", "ng_e2e_test_library", "ng_module") +load("//tools:defaults.bzl", "ng_e2e_test_library", "ng_module", "sass_binary", "sass_library") ng_module( name = "mdc-sidenav", diff --git a/src/material-experimental/mdc-slide-toggle/BUILD.bazel b/src/material-experimental/mdc-slide-toggle/BUILD.bazel index 1909a1802535..7f154b67963f 100644 --- a/src/material-experimental/mdc-slide-toggle/BUILD.bazel +++ b/src/material-experimental/mdc-slide-toggle/BUILD.bazel @@ -1,8 +1,15 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load("//src/e2e-app:test_suite.bzl", "e2e_test_suite") -load("//tools:defaults.bzl", "ng_e2e_test_library", "ng_module", "ng_test_library", "ng_web_test_suite") +load( + "//tools:defaults.bzl", + "ng_e2e_test_library", + "ng_module", + "ng_test_library", + "ng_web_test_suite", + "sass_binary", + "sass_library", +) ng_module( name = "mdc-slide-toggle", diff --git a/src/material-experimental/mdc-slider/BUILD.bazel b/src/material-experimental/mdc-slider/BUILD.bazel index a4defcf700fc..0f5ebae8e7f3 100644 --- a/src/material-experimental/mdc-slider/BUILD.bazel +++ b/src/material-experimental/mdc-slider/BUILD.bazel @@ -1,8 +1,15 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load("//src/e2e-app:test_suite.bzl", "e2e_test_suite") -load("//tools:defaults.bzl", "ng_e2e_test_library", "ng_module", "ng_test_library", "ng_web_test_suite") +load( + "//tools:defaults.bzl", + "ng_e2e_test_library", + "ng_module", + "ng_test_library", + "ng_web_test_suite", + "sass_binary", + "sass_library", +) ng_module( name = "mdc-slider", diff --git a/src/material-experimental/mdc-tabs/BUILD.bazel b/src/material-experimental/mdc-tabs/BUILD.bazel index 7cb1c62e08de..a8559e847dcb 100644 --- a/src/material-experimental/mdc-tabs/BUILD.bazel +++ b/src/material-experimental/mdc-tabs/BUILD.bazel @@ -1,8 +1,15 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load("//src/e2e-app:test_suite.bzl", "e2e_test_suite") -load("//tools:defaults.bzl", "ng_e2e_test_library", "ng_module", "ng_test_library", "ng_web_test_suite") +load( + "//tools:defaults.bzl", + "ng_e2e_test_library", + "ng_module", + "ng_test_library", + "ng_web_test_suite", + "sass_binary", + "sass_library", +) ng_module( name = "mdc-tabs", diff --git a/src/material-experimental/mdc-theming/BUILD.bazel b/src/material-experimental/mdc-theming/BUILD.bazel index e4c73418df99..9687baccfee3 100644 --- a/src/material-experimental/mdc-theming/BUILD.bazel +++ b/src/material-experimental/mdc-theming/BUILD.bazel @@ -1,6 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") +load("//tools:defaults.bzl", "sass_binary", "sass_library") sass_library( name = "all_themes", diff --git a/src/material-experimental/mdc-typography/BUILD.bazel b/src/material-experimental/mdc-typography/BUILD.bazel index 14ca565730a2..f80729feb11b 100644 --- a/src/material-experimental/mdc-typography/BUILD.bazel +++ b/src/material-experimental/mdc-typography/BUILD.bazel @@ -1,6 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_library") +load("//tools:defaults.bzl", "sass_library") sass_library( name = "all_typography", diff --git a/src/material-experimental/popover-edit/BUILD.bazel b/src/material-experimental/popover-edit/BUILD.bazel index 15a5ebb31b8b..c9f2d43233f9 100644 --- a/src/material-experimental/popover-edit/BUILD.bazel +++ b/src/material-experimental/popover-edit/BUILD.bazel @@ -1,7 +1,12 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_library") -load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite") +load( + "//tools:defaults.bzl", + "ng_module", + "ng_test_library", + "ng_web_test_suite", + "sass_library", +) ng_module( name = "popover-edit", diff --git a/src/material/autocomplete/BUILD.bazel b/src/material/autocomplete/BUILD.bazel index b3c224f0452f..248e11e57f90 100644 --- a/src/material/autocomplete/BUILD.bazel +++ b/src/material/autocomplete/BUILD.bazel @@ -1,12 +1,13 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load( "//tools:defaults.bzl", "markdown_to_html", "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_binary", + "sass_library", ) ng_module( diff --git a/src/material/badge/BUILD.bazel b/src/material/badge/BUILD.bazel index 76364596ee25..9a98739e3230 100644 --- a/src/material/badge/BUILD.bazel +++ b/src/material/badge/BUILD.bazel @@ -1,12 +1,12 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_library") load( "//tools:defaults.bzl", "markdown_to_html", "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_library", ) ng_module( diff --git a/src/material/bottom-sheet/BUILD.bazel b/src/material/bottom-sheet/BUILD.bazel index 46d9d427cb2a..b88d2e864e97 100644 --- a/src/material/bottom-sheet/BUILD.bazel +++ b/src/material/bottom-sheet/BUILD.bazel @@ -1,12 +1,13 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load( "//tools:defaults.bzl", "markdown_to_html", "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_binary", + "sass_library", ) ng_module( diff --git a/src/material/button-toggle/BUILD.bazel b/src/material/button-toggle/BUILD.bazel index ae460c14576b..f562fdd8fd17 100644 --- a/src/material/button-toggle/BUILD.bazel +++ b/src/material/button-toggle/BUILD.bazel @@ -1,6 +1,5 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load("//src/e2e-app:test_suite.bzl", "e2e_test_suite") load( "//tools:defaults.bzl", @@ -9,6 +8,8 @@ load( "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_binary", + "sass_library", ) ng_module( diff --git a/src/material/button/BUILD.bazel b/src/material/button/BUILD.bazel index ebf3dfcc135e..5f40697c11a0 100644 --- a/src/material/button/BUILD.bazel +++ b/src/material/button/BUILD.bazel @@ -1,6 +1,5 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load("//src/e2e-app:test_suite.bzl", "e2e_test_suite") load( "//tools:defaults.bzl", @@ -9,6 +8,8 @@ load( "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_binary", + "sass_library", ) ng_module( diff --git a/src/material/card/BUILD.bazel b/src/material/card/BUILD.bazel index df8189639475..c274ab8cc96e 100644 --- a/src/material/card/BUILD.bazel +++ b/src/material/card/BUILD.bazel @@ -1,8 +1,14 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load("//src/e2e-app:test_suite.bzl", "e2e_test_suite") -load("//tools:defaults.bzl", "markdown_to_html", "ng_e2e_test_library", "ng_module") +load( + "//tools:defaults.bzl", + "markdown_to_html", + "ng_e2e_test_library", + "ng_module", + "sass_binary", + "sass_library", +) ng_module( name = "card", diff --git a/src/material/checkbox/BUILD.bazel b/src/material/checkbox/BUILD.bazel index 20b5ca06aefd..4debeb6263b9 100644 --- a/src/material/checkbox/BUILD.bazel +++ b/src/material/checkbox/BUILD.bazel @@ -1,6 +1,5 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load("//src/e2e-app:test_suite.bzl", "e2e_test_suite") load( "//tools:defaults.bzl", @@ -9,6 +8,8 @@ load( "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_binary", + "sass_library", ) ng_module( diff --git a/src/material/chips/BUILD.bazel b/src/material/chips/BUILD.bazel index 3eaac32a0ca7..96d5f56e4cb2 100644 --- a/src/material/chips/BUILD.bazel +++ b/src/material/chips/BUILD.bazel @@ -1,12 +1,13 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load( "//tools:defaults.bzl", "markdown_to_html", "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_binary", + "sass_library", ) ng_module( diff --git a/src/material/core/BUILD.bazel b/src/material/core/BUILD.bazel index e045896dc1aa..b1e1e94016f4 100644 --- a/src/material/core/BUILD.bazel +++ b/src/material/core/BUILD.bazel @@ -1,6 +1,5 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load("//src/material:config.bzl", "MATERIAL_SCSS_LIBS") load( "//tools:defaults.bzl", @@ -8,6 +7,8 @@ load( "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_binary", + "sass_library", ) exports_files(["theming/_theming.scss"]) diff --git a/src/material/datepicker/BUILD.bazel b/src/material/datepicker/BUILD.bazel index ce66736df066..3e0da4bb9773 100644 --- a/src/material/datepicker/BUILD.bazel +++ b/src/material/datepicker/BUILD.bazel @@ -1,12 +1,13 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load( "//tools:defaults.bzl", "markdown_to_html", "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_binary", + "sass_library", ) ng_module( diff --git a/src/material/dialog/BUILD.bazel b/src/material/dialog/BUILD.bazel index 23f2669899bc..ffc68b1c850e 100644 --- a/src/material/dialog/BUILD.bazel +++ b/src/material/dialog/BUILD.bazel @@ -1,6 +1,5 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load("//src/e2e-app:test_suite.bzl", "e2e_test_suite") load( "//tools:defaults.bzl", @@ -9,6 +8,8 @@ load( "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_binary", + "sass_library", ) ng_module( diff --git a/src/material/divider/BUILD.bazel b/src/material/divider/BUILD.bazel index 644ffb242ed4..56ab1275bad0 100644 --- a/src/material/divider/BUILD.bazel +++ b/src/material/divider/BUILD.bazel @@ -1,12 +1,13 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load( "//tools:defaults.bzl", "markdown_to_html", "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_binary", + "sass_library", ) ng_module( diff --git a/src/material/expansion/BUILD.bazel b/src/material/expansion/BUILD.bazel index 651bdfc9997a..18453694f792 100644 --- a/src/material/expansion/BUILD.bazel +++ b/src/material/expansion/BUILD.bazel @@ -1,6 +1,5 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load("//src/e2e-app:test_suite.bzl", "e2e_test_suite") load( "//tools:defaults.bzl", @@ -9,6 +8,8 @@ load( "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_binary", + "sass_library", ) ng_module( diff --git a/src/material/form-field/BUILD.bazel b/src/material/form-field/BUILD.bazel index d68d503a086b..e15358e4e236 100644 --- a/src/material/form-field/BUILD.bazel +++ b/src/material/form-field/BUILD.bazel @@ -1,7 +1,12 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") -load("//tools:defaults.bzl", "markdown_to_html", "ng_module") +load( + "//tools:defaults.bzl", + "markdown_to_html", + "ng_module", + "sass_binary", + "sass_library", +) ng_module( name = "form-field", diff --git a/src/material/grid-list/BUILD.bazel b/src/material/grid-list/BUILD.bazel index 79a8f30174e6..57d1da944edf 100644 --- a/src/material/grid-list/BUILD.bazel +++ b/src/material/grid-list/BUILD.bazel @@ -1,6 +1,5 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load("//src/e2e-app:test_suite.bzl", "e2e_test_suite") load( "//tools:defaults.bzl", @@ -9,6 +8,8 @@ load( "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_binary", + "sass_library", ) ng_module( diff --git a/src/material/icon/BUILD.bazel b/src/material/icon/BUILD.bazel index d94230333986..61cbe1ac1b3f 100644 --- a/src/material/icon/BUILD.bazel +++ b/src/material/icon/BUILD.bazel @@ -1,6 +1,5 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load("//src/e2e-app:test_suite.bzl", "e2e_test_suite") load( "//tools:defaults.bzl", @@ -9,6 +8,8 @@ load( "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_binary", + "sass_library", ) ng_module( diff --git a/src/material/input/BUILD.bazel b/src/material/input/BUILD.bazel index 3fba5f35f266..5635223b255a 100644 --- a/src/material/input/BUILD.bazel +++ b/src/material/input/BUILD.bazel @@ -1,6 +1,5 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_library") load("//src/e2e-app:test_suite.bzl", "e2e_test_suite") load( "//tools:defaults.bzl", @@ -9,6 +8,7 @@ load( "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_library", ) ng_module( diff --git a/src/material/list/BUILD.bazel b/src/material/list/BUILD.bazel index 30d4b4994aac..e8444fd829f6 100644 --- a/src/material/list/BUILD.bazel +++ b/src/material/list/BUILD.bazel @@ -1,6 +1,5 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load("//src/e2e-app:test_suite.bzl", "e2e_test_suite") load( "//tools:defaults.bzl", @@ -9,6 +8,8 @@ load( "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_binary", + "sass_library", ) ng_module( diff --git a/src/material/menu/BUILD.bazel b/src/material/menu/BUILD.bazel index 63fd67d1d906..ad0fb4ee6bcb 100644 --- a/src/material/menu/BUILD.bazel +++ b/src/material/menu/BUILD.bazel @@ -1,6 +1,5 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load("//src/e2e-app:test_suite.bzl", "e2e_test_suite") load( "//tools:defaults.bzl", @@ -9,6 +8,8 @@ load( "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_binary", + "sass_library", ) ng_module( diff --git a/src/material/paginator/BUILD.bazel b/src/material/paginator/BUILD.bazel index b9fa11c3eea2..f814ff32a074 100644 --- a/src/material/paginator/BUILD.bazel +++ b/src/material/paginator/BUILD.bazel @@ -1,12 +1,13 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load( "//tools:defaults.bzl", "markdown_to_html", "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_binary", + "sass_library", ) ng_module( diff --git a/src/material/progress-bar/BUILD.bazel b/src/material/progress-bar/BUILD.bazel index 292e95fde765..1f060ee436a2 100644 --- a/src/material/progress-bar/BUILD.bazel +++ b/src/material/progress-bar/BUILD.bazel @@ -1,6 +1,5 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load("//src/e2e-app:test_suite.bzl", "e2e_test_suite") load( "//tools:defaults.bzl", @@ -9,6 +8,8 @@ load( "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_binary", + "sass_library", ) ng_module( diff --git a/src/material/progress-spinner/BUILD.bazel b/src/material/progress-spinner/BUILD.bazel index b7855ee41c10..f0bd0fdf0474 100644 --- a/src/material/progress-spinner/BUILD.bazel +++ b/src/material/progress-spinner/BUILD.bazel @@ -1,6 +1,5 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load("//src/e2e-app:test_suite.bzl", "e2e_test_suite") load( "//tools:defaults.bzl", @@ -9,6 +8,8 @@ load( "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_binary", + "sass_library", ) ng_module( diff --git a/src/material/radio/BUILD.bazel b/src/material/radio/BUILD.bazel index 1b34ddf53ac2..76abd86a2135 100644 --- a/src/material/radio/BUILD.bazel +++ b/src/material/radio/BUILD.bazel @@ -1,6 +1,5 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load("//src/e2e-app:test_suite.bzl", "e2e_test_suite") load( "//tools:defaults.bzl", @@ -9,6 +8,8 @@ load( "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_binary", + "sass_library", ) ng_module( diff --git a/src/material/select/BUILD.bazel b/src/material/select/BUILD.bazel index 72fc1fc715ff..581cde656ab4 100644 --- a/src/material/select/BUILD.bazel +++ b/src/material/select/BUILD.bazel @@ -1,12 +1,13 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load( "//tools:defaults.bzl", "markdown_to_html", "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_binary", + "sass_library", ) ng_module( diff --git a/src/material/sidenav/BUILD.bazel b/src/material/sidenav/BUILD.bazel index e7823f4a7793..976946e85d7c 100644 --- a/src/material/sidenav/BUILD.bazel +++ b/src/material/sidenav/BUILD.bazel @@ -1,6 +1,5 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load("//src/e2e-app:test_suite.bzl", "e2e_test_suite") load( "//tools:defaults.bzl", @@ -9,6 +8,8 @@ load( "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_binary", + "sass_library", ) ng_module( diff --git a/src/material/slide-toggle/BUILD.bazel b/src/material/slide-toggle/BUILD.bazel index 25cdab7ab9ad..3ace690850b4 100644 --- a/src/material/slide-toggle/BUILD.bazel +++ b/src/material/slide-toggle/BUILD.bazel @@ -1,6 +1,5 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load("//src/e2e-app:test_suite.bzl", "e2e_test_suite") load( "//tools:defaults.bzl", @@ -9,6 +8,8 @@ load( "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_binary", + "sass_library", ) ng_module( diff --git a/src/material/slider/BUILD.bazel b/src/material/slider/BUILD.bazel index c5b9b3b0e65b..e840ba104dd8 100644 --- a/src/material/slider/BUILD.bazel +++ b/src/material/slider/BUILD.bazel @@ -1,12 +1,13 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load( "//tools:defaults.bzl", "markdown_to_html", "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_binary", + "sass_library", ) ng_module( diff --git a/src/material/snack-bar/BUILD.bazel b/src/material/snack-bar/BUILD.bazel index f674ce374b37..bbc15aa75598 100644 --- a/src/material/snack-bar/BUILD.bazel +++ b/src/material/snack-bar/BUILD.bazel @@ -1,12 +1,13 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load( "//tools:defaults.bzl", "markdown_to_html", "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_binary", + "sass_library", ) ng_module( diff --git a/src/material/sort/BUILD.bazel b/src/material/sort/BUILD.bazel index 77fe25feb684..f3a96ee37513 100644 --- a/src/material/sort/BUILD.bazel +++ b/src/material/sort/BUILD.bazel @@ -1,12 +1,13 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load( "//tools:defaults.bzl", "markdown_to_html", "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_binary", + "sass_library", ) ng_module( diff --git a/src/material/stepper/BUILD.bazel b/src/material/stepper/BUILD.bazel index 9530f18c8150..77e7c1a13c86 100644 --- a/src/material/stepper/BUILD.bazel +++ b/src/material/stepper/BUILD.bazel @@ -1,6 +1,5 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load("//src/e2e-app:test_suite.bzl", "e2e_test_suite") load( "//tools:defaults.bzl", @@ -9,6 +8,8 @@ load( "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_binary", + "sass_library", ) ng_module( diff --git a/src/material/table/BUILD.bazel b/src/material/table/BUILD.bazel index 9149a6e9cbed..bcb06ba0db70 100644 --- a/src/material/table/BUILD.bazel +++ b/src/material/table/BUILD.bazel @@ -1,12 +1,13 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load( "//tools:defaults.bzl", "markdown_to_html", "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_binary", + "sass_library", ) ng_module( diff --git a/src/material/tabs/BUILD.bazel b/src/material/tabs/BUILD.bazel index 148757bc2ec4..931ef2df6583 100644 --- a/src/material/tabs/BUILD.bazel +++ b/src/material/tabs/BUILD.bazel @@ -1,6 +1,5 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load("//src/e2e-app:test_suite.bzl", "e2e_test_suite") load( "//tools:defaults.bzl", @@ -9,6 +8,8 @@ load( "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_binary", + "sass_library", ) ng_module( diff --git a/src/material/toolbar/BUILD.bazel b/src/material/toolbar/BUILD.bazel index 63231c0c48b6..1c7b1838fc83 100644 --- a/src/material/toolbar/BUILD.bazel +++ b/src/material/toolbar/BUILD.bazel @@ -1,6 +1,5 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load("//src/e2e-app:test_suite.bzl", "e2e_test_suite") load( "//tools:defaults.bzl", @@ -9,6 +8,8 @@ load( "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_binary", + "sass_library", ) ng_module( diff --git a/src/material/tooltip/BUILD.bazel b/src/material/tooltip/BUILD.bazel index b1295a3a18c3..a5c5f2182b2e 100644 --- a/src/material/tooltip/BUILD.bazel +++ b/src/material/tooltip/BUILD.bazel @@ -1,12 +1,13 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load( "//tools:defaults.bzl", "markdown_to_html", "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_binary", + "sass_library", ) ng_module( diff --git a/src/material/tree/BUILD.bazel b/src/material/tree/BUILD.bazel index 741c00027278..e0f4249363ec 100644 --- a/src/material/tree/BUILD.bazel +++ b/src/material/tree/BUILD.bazel @@ -1,12 +1,13 @@ package(default_visibility = ["//visibility:public"]) -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary", "sass_library") load( "//tools:defaults.bzl", "markdown_to_html", "ng_module", "ng_test_library", "ng_web_test_suite", + "sass_binary", + "sass_library", ) ng_module( diff --git a/src/universal-app/BUILD.bazel b/src/universal-app/BUILD.bazel index 6500d45f068d..af2c8df2c915 100644 --- a/src/universal-app/BUILD.bazel +++ b/src/universal-app/BUILD.bazel @@ -1,12 +1,11 @@ package(default_visibility = ["//visibility:public"]) load("@build_bazel_rules_nodejs//:defs.bzl", "nodejs_test") -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") load("//src/cdk:config.bzl", "CDK_TARGETS") load("//src/cdk-experimental:config.bzl", "CDK_EXPERIMENTAL_TARGETS") load("//src/material:config.bzl", "MATERIAL_TARGETS") load("//src/material-experimental:config.bzl", "MATERIAL_EXPERIMENTAL_TARGETS") -load("//tools:defaults.bzl", "ng_module", "ts_library") +load("//tools:defaults.bzl", "ng_module", "sass_binary", "ts_library") ng_module( name = "kitchen-sink", diff --git a/tools/defaults.bzl b/tools/defaults.bzl index fbbc4510c642..047bc58c09ec 100644 --- a/tools/defaults.bzl +++ b/tools/defaults.bzl @@ -1,5 +1,6 @@ # Re-export of Bazel rules with repository-wide defaults +load("@io_bazel_rules_sass//:defs.bzl", _sass_binary = "sass_binary", _sass_library = "sass_library") load("@npm_angular_bazel//:index.bzl", _ng_module = "ng_module", _ng_package = "ng_package") load("@npm_bazel_jasmine//:index.bzl", _jasmine_node_test = "jasmine_node_test") load("@npm_bazel_karma//:index.bzl", _karma_web_test_suite = "karma_web_test_suite") @@ -26,6 +27,15 @@ def _getDefaultTsConfig(testonly): else: return _DEFAULT_TSCONFIG_BUILD +def sass_binary(sourcemap = False, **kwargs): + _sass_binary( + sourcemap = sourcemap, + **kwargs + ) + +def sass_library(**kwargs): + _sass_library(**kwargs) + def ts_library(tsconfig = None, deps = [], testonly = False, **kwargs): # Add tslib because we use import helpers for all public packages. local_deps = ["@npm//tslib"] + deps diff --git a/tools/sass_generate_binaries.bzl b/tools/sass_generate_binaries.bzl index a1a6da591e00..4a80dc95e8a1 100644 --- a/tools/sass_generate_binaries.bzl +++ b/tools/sass_generate_binaries.bzl @@ -1,4 +1,4 @@ -load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") +load("//tools:defaults.bzl", "sass_binary") # Generates multiple sass binaries based on a specified list of source files. # All generated sass binaries will be exposed as a filegroup that has all the