angular/devtools/projects/ng-devtools/src/lib/application-services/BUILD.bazel
hawkgs 4f3ad98466 refactor(devtools): styles management (#59589)
- Move all styles to ng-devtools/src/styles.
- Create a BrowserService that detects the browsers and adds it as a class to the body. Move global browser styles.
- Create theme mixins that incorporate the browser type into them.
- Refactor some of the affected code along with the introduced changes.

PR Close #59589
2025-02-12 10:47:02 -08:00

60 lines
1.5 KiB
Text

load("//devtools/tools:defaults.bzl", "karma_web_test_suite")
load("//devtools/tools:ng_module.bzl", "ng_module")
load("//devtools/tools:typescript.bzl", "ts_test_library")
package(default_visibility = ["//visibility:public"])
ng_module(
name = "browser_styles",
srcs = ["browser_styles_service.ts"],
deps = [
"//packages/common",
"//packages/core",
"@npm//@angular/cdk",
],
)
ng_module(
name = "frame_manager",
srcs = ["frame_manager.ts"],
deps = [
"//devtools/projects/ng-devtools/src/lib/application-environment",
"//devtools/projects/protocol",
"//packages/core",
],
)
ng_module(
name = "theme",
srcs = ["theme_service.ts"],
deps = [
"//devtools/projects/ng-devtools/src/lib/application-providers:window",
"//packages/common",
"//packages/core",
"@npm//@types",
"@npm//rxjs",
],
)
ts_test_library(
name = "test_application_services_lib",
srcs = glob(["*_spec.ts"]),
deps = [
":browser_styles",
":frame_manager",
":theme",
"//devtools/projects/ng-devtools/src/lib/application-environment",
"//devtools/projects/ng-devtools/src/lib/application-providers:window",
"//devtools/projects/protocol",
"//packages/common",
"//packages/core/testing",
"@npm//@angular/cdk",
],
)
karma_web_test_suite(
name = "test_application_services",
deps = [
":test_application_services_lib",
],
)