2018-11-02 22:38:34 +01:00
|
|
|
package(default_visibility=["//visibility:public"])
|
|
|
|
|
|
|
|
|
|
load("@build_bazel_rules_nodejs//:defs.bzl", "nodejs_binary")
|
|
|
|
|
load("//tools:defaults.bzl", "ts_library")
|
|
|
|
|
|
|
|
|
|
ts_library(
|
|
|
|
|
name = "example-module-lib",
|
|
|
|
|
srcs = glob(["**/*.ts"]),
|
|
|
|
|
deps = [
|
2019-03-06 15:16:47 -08:00
|
|
|
"@npm//@types/node",
|
|
|
|
|
"@npm//typescript",
|
2018-11-02 22:38:34 +01:00
|
|
|
],
|
|
|
|
|
tsconfig = ":tsconfig.json",
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
nodejs_binary(
|
|
|
|
|
name = "bazel-bin",
|
|
|
|
|
entry_point = "angular_material/tools/example-module/bazel-bin.js",
|
|
|
|
|
data = [
|
2019-03-06 15:16:47 -08:00
|
|
|
"@npm//typescript",
|
|
|
|
|
"@npm//source-map-support",
|
2018-11-02 22:38:34 +01:00
|
|
|
":example-module-lib",
|
|
|
|
|
":example-module.template",
|
|
|
|
|
],
|
|
|
|
|
)
|