diff options
author | 2017-02-07 18:10:32 -0800 | |
---|---|---|
committer | 2017-02-07 18:29:29 -0800 | |
commit | 2ac1ba331176eee21e35c7f00b95b275dd6cb21b (patch) | |
tree | 6f0762c2ed7280fb41e0b92cf395bdabf016779e | |
parent | f9db31f8ce1583521d8222f160bb70a671e9503b (diff) |
Migrate tf_globals to webfiles.
Change: 146861281
-rw-r--r-- | tensorflow/tensorboard/components/tf_globals/BUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/tensorflow/tensorboard/components/tf_globals/BUILD b/tensorflow/tensorboard/components/tf_globals/BUILD new file mode 100644 index 0000000000..21724aa26b --- /dev/null +++ b/tensorflow/tensorboard/components/tf_globals/BUILD @@ -0,0 +1,49 @@ +package(default_visibility = ["//tensorflow:internal"]) + +load("@io_bazel_rules_closure//closure:defs.bzl", "webfiles") +load("//tensorflow/tensorboard:defs.bzl", "tensorboard_ts_library") +load("//tensorflow/tensorboard:defs.bzl", "tensorboard_typescript_genrule") +load("//tensorflow/tensorboard:defs.bzl", "tensorboard_webcomponent_library") + +licenses(["notice"]) # Apache 2.0 + +# TODO(dandelion): Add webfiles support for the test code. + +webfiles( + name = "tf_globals", + srcs = [ + "tf-globals.html", + ":ts", + ], + path = "/tf-globals", +) + +tensorboard_typescript_genrule( + name = "ts", + srcs = ["globals.ts"], +) + +filegroup( + name = "all_files", + srcs = glob(["**"]), + tags = ["notsan"], +) + +################################################################################ +# MARKED FOR DELETION + +tensorboard_webcomponent_library( + name = "legacy", + srcs = [ + "tf-globals.html", + ":legacy_ts", + ], + destdir = "tf-globals", +) + +tensorboard_ts_library( + name = "legacy_ts", + srcs = [ + "globals.ts", + ], +) |