/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/cdk/keycodes/BUILD.bazel
46 строк
1 KB
Kristiyan Kostadinov
build: enable AoT compilation for all tests (#31930)
26 сен 2025, 23:25
Не верифицирован
26 сен 2025, 23:25
a2383cf
Код
Авторство
О чём код?
load("//tools:defaults.bzl", "markdown_to_html", "ng_project", "ng_web_test_suite") package(default_visibility = ["//visibility:public"]) # We need to use "ng_project" here since we want metadata to be generated for keycode # constants. This is necessary because some of these constants are statically used in # component/directive metadata (e.g. chips) and NGC needs to be able to evaluate these # at compile time. ng_project( name = "keycodes", srcs = glob( ["**/*.ts"], exclude = ["**/*.spec.ts"], ), deps = [], ) ng_project( name = "unit_test_sources", testonly = True, srcs = glob( ["**/*.spec.ts"], exclude = ["**/*.e2e.spec.ts"], ), deps = [ ":keycodes", "//:node_modules/@angular/core", "//:node_modules/@types/jasmine", "//src/cdk/testing/private", ], ) ng_web_test_suite( name = "unit_tests", deps = [":unit_test_sources"], ) markdown_to_html( name = "overview", srcs = [":keycodes.md"], ) filegroup( name = "source-files", srcs = glob(["**/*.ts"]), )