build(bazel): fix bazel integration test after rules_typescript update (#25490)
PR Close #25490
This commit is contained in:

committed by
Matias Niemelä

parent
22e7f7e99f
commit
a59d4da304
@ -4,41 +4,33 @@ exports_files([
|
||||
"protractor.conf.js",
|
||||
])
|
||||
|
||||
# ts_library and ng_module use the `//:tsconfig.json` target
|
||||
# by default. This alias allows omitting explicit tsconfig
|
||||
# attribute.
|
||||
alias(
|
||||
name = "tsconfig.json",
|
||||
actual = "//src:tsconfig.json",
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "node_modules",
|
||||
srcs = glob(
|
||||
["node_modules/**/*"],
|
||||
[
|
||||
# Include only .js, .json & .d.ts files to reduce the number of
|
||||
# files in the //:node_modules filegroup
|
||||
"node_modules/**/*.js",
|
||||
"node_modules/**/*.json",
|
||||
"node_modules/**/*.d.ts",
|
||||
# All the files in the http-server package are necesssary
|
||||
"node_modules/http-server/**",
|
||||
# All the files in the protractor package are necesssary
|
||||
"node_modules/protractor/**",
|
||||
# Also include all files in node_modules/.bin
|
||||
"node_modules/.bin/*",
|
||||
],
|
||||
exclude = [
|
||||
# Exclude rxjs because we build it from sources using the label @rxjs//:rxjs
|
||||
"node_modules/rxjs/**",
|
||||
|
||||
# Exclude directories that commonly contain filenames which are
|
||||
# illegal bazel labels
|
||||
# e.g. node_modules/adm-zip/test/assets/attributes_test/New folder/hidden.txt
|
||||
"node_modules/**/test/**",
|
||||
# e.g. node_modules/xpath/docs/function resolvers.md
|
||||
"node_modules/**/docs/**",
|
||||
# Exclude files with spaces which are illegal bazel labels
|
||||
"node_modules/**/* *",
|
||||
],
|
||||
),
|
||||
)
|
||||
|
||||
ANGULAR_TESTING = [
|
||||
"node_modules/@angular/*/bundles/*-testing.umd.js",
|
||||
# We use AOT, so the dynamic platform-browser should be visible only in tests
|
||||
# NOTE that we still need to include the compiler because the core depends on it
|
||||
"node_modules/@angular/platform-browser-dynamic/bundles/*.umd.js",
|
||||
]
|
||||
|
||||
filegroup(
|
||||
name = "angular_bundles",
|
||||
srcs = glob(
|
||||
["node_modules/@angular/*/bundles/*.umd.js"],
|
||||
exclude = ANGULAR_TESTING,
|
||||
),
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "angular_test_bundles",
|
||||
testonly = 1,
|
||||
srcs = glob(ANGULAR_TESTING),
|
||||
)
|
||||
|
Reference in New Issue
Block a user