rules_closure
rules_closure copied to clipboard
Create rules for contrib/externs
Working with this project would be a bit simpler if we included contrib/externs in the set of external dependencies that are installed automatically.
Doesn't it do that already?
Maybe, but I couldn't find the contrib externs. How would I reference contrib/externs/chrome_extensions.js?
That's available on maven in separate jar that zips them all together. It's currently not available in Closure Rules. We could certainly add it and make it available under certain build rules.
Any progress on this? I was thinking unpack @com_google_javascript_closure_compiler_externs//:externs.zip and write a BUILD file. Probably as a custom repository rule. Simpler approach? But this does not cover contrib/externs, so maybe unpack the closure_compiler.jar and use that.
I would recommend implementing the workaround you described for the time being. Defining a good public build API for all these externs is probably not something I have the cycles to take on at this moment.
@pcj Sorry but I have not done any work on this yet.