2018-03-01 13:41:35 -05:00
|
|
|
load("//tools/ts-api-guardian:index.bzl", "ts_api_guardian_test")
|
|
|
|
|
|
|
|
[
|
|
|
|
ts_api_guardian_test(
|
2018-03-07 13:11:51 -05:00
|
|
|
name = "%s_%s_api" % (
|
|
|
|
bundle[0],
|
|
|
|
bundle[1].replace("/", "_"),
|
|
|
|
),
|
2018-03-01 13:41:35 -05:00
|
|
|
actual = "packages/%s/npm_package/%s.d.ts" % (
|
2018-03-07 13:11:51 -05:00
|
|
|
bundle[0],
|
|
|
|
bundle[1],
|
2018-03-01 13:41:35 -05:00
|
|
|
),
|
|
|
|
data = glob([
|
2018-03-07 13:11:51 -05:00
|
|
|
"%s/**/*.d.ts" % bundle[0],
|
2018-03-01 13:41:35 -05:00
|
|
|
]) + [
|
2018-03-07 13:11:51 -05:00
|
|
|
"//packages/%s:npm_package" % bundle[0],
|
2018-03-01 13:41:35 -05:00
|
|
|
],
|
2018-03-07 13:11:51 -05:00
|
|
|
golden = "tools/public_api_guard/%s/%s.d.ts" % (
|
|
|
|
bundle[0],
|
|
|
|
bundle[1],
|
|
|
|
),
|
2018-03-01 13:41:35 -05:00
|
|
|
)
|
2018-03-07 13:11:51 -05:00
|
|
|
for bundle in [
|
|
|
|
[
|
|
|
|
"core",
|
|
|
|
"core",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"core",
|
|
|
|
"testing",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"common",
|
|
|
|
"http/testing",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"common",
|
|
|
|
"common",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"common",
|
|
|
|
"http",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"common",
|
|
|
|
"testing",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"router",
|
|
|
|
"router",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"router",
|
|
|
|
"testing",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"router",
|
|
|
|
"upgrade",
|
|
|
|
],
|
2018-03-01 13:41:35 -05:00
|
|
|
# TODO(alexeagle): add remaining packages here once they have ng_package's
|
|
|
|
]
|
|
|
|
]
|