Skip to content

Conversation

@stephanwlee
Copy link
Contributor

@stephanwlee stephanwlee commented Apr 23, 2021

TensorBoard no longer uses JSCompiler in a meaningful way. For the most
TypeScript/JavaScript source, we use rollup via rules_nodejs. Hence, we
now remove the JSCompiler portion from the Vulcanization.

Soon after, vulcanize.bzl will be completely removed accordingly.

TensorBoard no longer uses JSCompiler in a meaningful way. For the most
TypeScript/JavaScript source, we use rollup via rules_nodejs. Hence, we
now remove the JSCompiler portion from the Vulcanization.

Soon after, vulcanize.bzl will be completely removed accordingly.
@google-cla google-cla bot added the cla: yes label Apr 23, 2021
@stephanwlee stephanwlee requested a review from nfelt April 23, 2021 05:13
Copy link
Contributor

@nfelt nfelt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this!

"""Rule for building the HTML binary."""

load("@io_bazel_rules_closure//closure:defs.bzl", "closure_js_aspect")
load("@io_bazel_rules_closure//closure/private:defs.bzl", "collect_js", "long_path", "unfurl") # buildifier: disable=bzl-visibility
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

# buildifier: disable=bzl-visibility lol

KEEP OUT or don't I'm a sign not a cop

)

# vulcanize
ignore_regexs_file_set = depset()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks unused?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed. Thanks.

attrs = {
"input_path": attr.string(mandatory = True),
"output_path": attr.string(mandatory = True),
# If specified, it extracts scripts into {name}.js and inserts <script src="{js_path}">.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we use doc parameters for these attrs to provide a brief description of each one, just for posterity so we can better understand how this is used? They can just be a single line.

One thing that I had to go read Vulcanize.java to remember is the distinction between input_path and deps - i.e. that input_path is where we start the crawl from, and deps has to contain all the webfiles that input_path is referencing. Just brief mentions of things like that would help contextualize what's happening here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I gave it a stab. Thanks for the suggestion.

@nfelt
Copy link
Contributor

nfelt commented Apr 24, 2021

Thanks, LGTM!

@stephanwlee stephanwlee merged commit 6bac32d into tensorflow:master Apr 26, 2021
@stephanwlee stephanwlee deleted the no_jscomp branch April 26, 2021 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants