angular/devtools/projects/ng-devtools/src/lib/devtools-tabs/profiler/BUILD.bazel
hawkgs 77b5eed024 refactor(devtools): extract and organize colors into themes (#60374)
Extract all colors from the stylesheets, reduce their number by merging the similar ones and organize them into themes represented by CSS variables.

PR Close #60374
2025-03-27 18:10:28 +00:00

44 lines
1 KiB
Text

load("@io_bazel_rules_sass//:defs.bzl", "sass_binary")
load("//devtools/tools:ng_module.bzl", "ng_module")
package(default_visibility = ["//visibility:public"])
_STYLE_SRCS = [
"profiler.component.scss",
"profiler-import-dialog.component.scss",
]
_STYLE_LABELS = [
src[:-len(".component.scss")].replace("-", "_") + "_styles"
for src in _STYLE_SRCS
]
[
sass_binary(
name = label,
src = src,
)
for label, src in zip(_STYLE_LABELS, _STYLE_SRCS)
]
ng_module(
name = "profiler",
srcs = [
"file-api-service.ts",
"profiler.component.ts",
"profiler-import-dialog.component.ts",
],
angular_assets = [
"profiler.component.html",
"profiler-import-dialog.component.html",
] + _STYLE_LABELS,
deps = [
"//devtools/projects/ng-devtools/src/lib/devtools-tabs/profiler/timeline",
"//devtools/projects/protocol",
"//packages/common",
"//packages/core",
"//packages/forms",
"@npm//@angular/material",
"@npm//rxjs",
],
)