2020-02-26 12:09:35 -05:00
|
|
|
load("//tools:defaults.bzl", "ng_package", "ts_api_guardian_test_npm_package", "ts_library")
|
2019-07-30 13:02:17 -04:00
|
|
|
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "localize",
|
|
|
|
srcs = glob(
|
|
|
|
[
|
|
|
|
"*.ts",
|
|
|
|
"src/**/*.ts",
|
|
|
|
],
|
|
|
|
),
|
|
|
|
module_name = "@angular/localize",
|
|
|
|
deps = [
|
2019-08-10 07:51:30 -04:00
|
|
|
"//packages/localize/src/localize",
|
2019-10-08 09:46:28 -04:00
|
|
|
"//packages/localize/src/utils",
|
2019-07-30 13:02:17 -04:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
ng_package(
|
|
|
|
name = "npm_package",
|
|
|
|
srcs = [
|
|
|
|
"package.json",
|
2019-08-10 07:51:30 -04:00
|
|
|
"//packages/localize/init:package.json",
|
2019-07-30 13:02:17 -04:00
|
|
|
],
|
|
|
|
entry_point = ":index.ts",
|
2019-12-28 19:37:59 -05:00
|
|
|
nested_packages = [
|
2019-09-20 11:05:45 -04:00
|
|
|
"//packages/localize/schematics:npm_package",
|
2019-10-08 09:46:28 -04:00
|
|
|
"//packages/localize/src/tools:npm_package",
|
2019-09-20 11:05:45 -04:00
|
|
|
],
|
2019-07-30 13:02:17 -04:00
|
|
|
tags = [
|
|
|
|
"release-with-framework",
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
":localize",
|
2019-08-10 07:51:30 -04:00
|
|
|
"//packages/localize/init",
|
2019-07-30 13:02:17 -04:00
|
|
|
],
|
|
|
|
)
|
2020-02-26 12:09:35 -05:00
|
|
|
|
|
|
|
ts_api_guardian_test_npm_package(
|
|
|
|
name = "localize_api",
|
|
|
|
actualDir = "packages/localize/npm_package",
|
|
|
|
data = [
|
|
|
|
":npm_package",
|
|
|
|
"//goldens:public-api",
|
|
|
|
],
|
|
|
|
goldenDir = "goldens/public-api/localize",
|
|
|
|
)
|