dgp1130 / rules_prerender

A Bazel rule set for prerending HTML pages.
14 stars 0 forks source link

`link_all_prerender_components()` #60

Open dgp1130 opened 1 year ago

dgp1130 commented 1 year ago

Currently we have link_prerender_component() as a re-interpretation of npm_link_package() to make prerender_component() targets available from an NPM package. We should also include link_all_prerender_components() similar to npm_link_all_packages() so users don't have to explicitly link every dependency they use.

This could probably be done via a workspace rule which looks over all the installed NPM packages for anything with the right metadata in package.json() and generating a workspace-specific link_all_prerender_components() macro which generates the link_prerender_component() calls automatically. Should also look at npm_link_all_packages() for inspiration here.