2020-02-26 09:09:35 -08:00
|
|
|
load("//tools:defaults.bzl", "ng_module", "ng_package", "ts_api_guardian_test_npm_package")
|
2017-12-06 06:56:49 -08:00
|
|
|
|
2019-01-16 10:19:01 +01:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
2018-02-02 09:18:44 -08:00
|
|
|
ng_module(
|
2017-12-06 06:56:49 -08:00
|
|
|
name = "http",
|
|
|
|
srcs = glob(
|
|
|
|
[
|
|
|
|
"*.ts",
|
|
|
|
"src/**/*.ts",
|
|
|
|
],
|
|
|
|
),
|
2019-06-14 09:29:04 +02:00
|
|
|
# Disable building with strict compatibility as the http package is no longer
|
|
|
|
# maintained and therefore not needed to be made compatible with --strict.
|
|
|
|
tsconfig = "//packages:tsconfig-build-no-strict",
|
2017-12-06 06:56:49 -08:00
|
|
|
deps = [
|
|
|
|
"//packages/core",
|
|
|
|
"//packages/platform-browser",
|
2019-02-20 09:54:42 -08:00
|
|
|
"@npm//rxjs",
|
2017-12-06 06:56:49 -08:00
|
|
|
],
|
|
|
|
)
|
2018-03-07 11:26:11 -08:00
|
|
|
|
|
|
|
ng_package(
|
|
|
|
name = "npm_package",
|
2018-03-13 11:00:53 -07:00
|
|
|
srcs = [
|
|
|
|
"package.json",
|
|
|
|
"//packages/http/testing:package.json",
|
|
|
|
],
|
2019-06-07 13:38:06 -07:00
|
|
|
entry_point = ":index.ts",
|
2018-06-05 11:38:46 -07:00
|
|
|
tags = [
|
2019-03-27 10:50:39 -07:00
|
|
|
# Currently the plan for Angular v8 is to exclude @angular/http package from publishing
|
|
|
|
# "release-with-framework",
|
2018-06-05 11:38:46 -07:00
|
|
|
],
|
2018-12-11 16:53:42 -08:00
|
|
|
# Do not add more to this list.
|
|
|
|
# Dependencies on the full npm_package cause long re-builds.
|
2019-01-22 18:46:51 +01:00
|
|
|
visibility = [
|
2020-02-04 11:45:40 -08:00
|
|
|
"//integration:__pkg__",
|
2019-01-22 18:46:51 +01:00
|
|
|
"//packages/compiler-cli/integrationtest:__pkg__",
|
|
|
|
],
|
2018-03-07 11:26:11 -08:00
|
|
|
deps = [
|
|
|
|
":http",
|
|
|
|
"//packages/http/testing",
|
|
|
|
],
|
|
|
|
)
|
2020-02-26 09:09:35 -08:00
|
|
|
|
|
|
|
ts_api_guardian_test_npm_package(
|
|
|
|
name = "http_api",
|
2020-03-12 12:36:28 +01:00
|
|
|
actualDir = "angular/packages/http/npm_package",
|
2020-02-26 09:09:35 -08:00
|
|
|
data = [
|
|
|
|
":npm_package",
|
|
|
|
"//goldens:public-api",
|
|
|
|
],
|
2020-03-12 12:36:28 +01:00
|
|
|
goldenDir = "angular/goldens/public-api/http",
|
2020-02-26 09:09:35 -08:00
|
|
|
)
|