JsInfo documentation
I'm working on a ruleset for js_of_ocaml, which transpiles OCaml bytecode to javascript.
I'd like to have my rules emit JsInfo so they integrate well with rules_js. The comments in js_info.bzl are pretty sparse. Do you have any additional information about what I should put in JsInfo? In particular the sources attribute. My rules just emit js files, is it sufficient to put them in a depset and add them to sources?
What is the transitive_sources attribute for? Shouldn't transitive (i.e. indirect) deps be added via the transitive argument of depset()? Or is there some reason they need to be kept separate?
FWIW it's been a long time since I last did any js programming so I'm kinda flying blind.
Thanks,
Gregg
I’m also interested in this documentation as I am adapting a large code base to use rules_js and would like to be able to update some legacy rules to emit jsinfo so they can be used as deps by rules_js