Miško Hevery 20a900b648 test: Add bundle symbol extractor tool (#22002)
This tool will be used for extracting symbols out of bundles so that
we can assert that only whitelisted symbols are allowed.

PR Close #22002
2018-02-13 11:28:54 -08:00

41 lines
739 B
Python

package(default_visibility = ["//visibility:public"])
load("//tools:defaults.bzl", "ts_library")
load("@build_bazel_rules_nodejs//:defs.bzl", "jasmine_node_test")
ts_library(
name = "lib",
testonly = 1,
srcs = glob(
["**/*.ts"],
exclude = [
"**/*_spec.ts",
"**/*_spec",
],
),
deps = [
"//packages:types",
],
)
ts_library(
name = "test_lib",
testonly = 1,
srcs = glob(
["**/*_spec.ts"],
exclude = ["symbol_extractor_spec/**"],
),
deps = [
":lib",
"//packages:types",
],
)
jasmine_node_test(
name = "test",
data = glob(["symbol_extractor_spec/**"]),
deps = [
":test_lib",
],
)