mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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
44 lines
1 KiB
Text
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",
|
|
],
|
|
)
|