See install instructions on the release page.
Generate an HTML file:
load("@bzlparty_rules_html//:defs.bzl", "html_file")
html_file(
name = "index",
out = "index.html",
body = [
"<p>Hello, World!</p>",
"<script src=\"$(location :hello_world.js)\"></script>":
],
title = "Hello, World!",
data = [
":hello_world.js",
],
)
Bundle an HTML file:
load("@bzlparty_rules_html//:defs.bzl", "html_bundle")
html_bundle(
name = "bundle",
out = "bundle.html",
endtry_point = ":index.html",
)
Install git hooks:
pre-commit install