Add basic webtesting example.
Also switch the angular example to use ts_library instead of ts_project.
Change-Id: Ib94c7010bd2af4036d1a04efaf95bbab43cb9ef0
Signed-off-by: Alex Perry <alex.perry96@gmail.com>
diff --git a/tools/BUILD b/tools/BUILD
index a7d165d..d64d602 100644
--- a/tools/BUILD
+++ b/tools/BUILD
@@ -1,3 +1,5 @@
+load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_binary")
+
package(default_visibility = ["//visibility:public"])
exports_files(["test_sharding_compliant"])
@@ -72,3 +74,13 @@
name = "has_ubsan",
values = {"define": "have_ubsan=true"},
)
+
+nodejs_binary(
+ name = "tsc_wrapped_with_angular",
+ data = [
+ "@npm//@angular/compiler-cli",
+ "@npm//@bazel/typescript",
+ ],
+ entry_point = "@npm//:node_modules/@bazel/typescript/internal/tsc_wrapped/tsc_wrapped.js",
+ target_compatible_with = ["@platforms//cpu:x86_64"],
+)