build: update to rules_typescript 0.25.1 (#28896)

* build_bazel_rules_typescript renamed to npm_bazel_typescript
* build_bazel_rules_karma renamed to npm_bazel_karma
* browser_repositories.bzl removed and now using @npm_bazel_karma//:browser_repositories.bzl
* includes some fixes for future ts_library devmode es2015 support but some failure still remain when devmode is es2015 so this PR keeps it as es5 using the bazelOptions.devmodeTargetOverride tsconfig setting

PR Close #28896
This commit is contained in:
Greg Magolan
2019-02-08 14:01:51 -08:00
committed by Ben Lesh
parent d0018e6bf6
commit d91ecd2c8b
89 changed files with 231 additions and 499 deletions

View File

@ -1,6 +1,6 @@
package(default_visibility = ["//visibility:public"])
load("@build_bazel_rules_typescript//:defs.bzl", "ts_config")
load("@npm_bazel_typescript//:defs.bzl", "ts_config")
exports_files(["tsconfig.json"])

View File

@ -1,8 +1,8 @@
"""Re-export of some bazel rules with repository-wide defaults."""
load("@build_bazel_rules_karma//:defs.bzl", _ts_web_test_suite = "ts_web_test_suite")
load("@npm_bazel_karma//:defs.bzl", _ts_web_test_suite = "ts_web_test_suite")
load("@build_bazel_rules_nodejs//:defs.bzl", _jasmine_node_test = "jasmine_node_test", _nodejs_binary = "nodejs_binary", _npm_package = "npm_package")
load("@build_bazel_rules_typescript//:defs.bzl", _ts_library = "ts_library")
load("@npm_bazel_typescript//:defs.bzl", _ts_library = "ts_library")
load("//packages/bazel:index.bzl", _ng_module = "ng_module", _ng_package = "ng_package")
load("//packages/bazel/src:ng_rollup_bundle.bzl", _ng_rollup_bundle = "ng_rollup_bundle")

View File

@ -1,7 +1,7 @@
package(default_visibility = ["//visibility:public"])
# Alias here so that @npm//@bazel/typescript is a valid Bazel target
# which is reference in build_bazel_rules_typescript/BUILD.bazel
# which is reference in npm_bazel_typescript/BUILD.bazel
alias(
name = "typescript",
actual = "@ngdeps//@bazel/typescript",

View File

@ -0,0 +1,7 @@
package(default_visibility = ["//visibility:public"])
# Alias here so that references actual in @ngdeps
alias(
name = "tsc_wrapped",
actual = "@ngdeps//@bazel/typescript/bin:tsc_wrapped",
)

View File

@ -5,7 +5,7 @@ load(
"nodejs_binary",
"npm_package",
)
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
load("@npm_bazel_typescript//:defs.bzl", "ts_library")
exports_files(["bin/ts-api-guardian"])