Skip to content

0.0.31

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 23 Jul 06:43

Installation

Copy the following into your WORKSPACE.bazel file:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "aspect_rules_js",
    sha256 = "00e7b97b696af63812df0ca9e9dbd18579f3edd3ab9a56f227238b8405e4051c",
    strip_prefix = "rules_js-1.23.0",
    url = "https://github.com/aspect-build/rules_js/releases/download/v1.23.0/rules_js-v1.23.0.tar.gz",
)
load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")
rules_js_dependencies()

load("@rules_nodejs//nodejs:repositories.bzl", "nodejs_register_toolchains")
nodejs_register_toolchains(
    name = "nodejs",
    node_version = "18.12.1",
)

load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")
npm_translate_lock(
    name = "npm",
    pnpm_lock = "//:pnpm-lock.yaml",
    verify_node_modules_ignored = "//:.bazelignore",
    npmrc = "//:.npmrc",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()

load("@aspect_bazel_lib//lib:repositories.bzl", "register_jq_toolchains")
register_jq_toolchains()

# This _must_ be named `rules_prerender`, other names are currently unsupported.
http_archive(
    name = "rules_prerender",
    sha256 = "21d9eedb9ecfd61b4eab9b0d0050fb8302db25982ce1087ae9a8497d88aac708",
    strip_prefix = "rules_prerender-0.0.31",
    url = "https://github.com/dgp1130/rules_prerender/releases/download/releases%2F0.0.31/rules_prerender-bazel_workspace-0.0.31.tar.gz",
)
load("@rules_prerender//:dependencies.bzl", "rules_prerender_dependencies")
rules_prerender_dependencies()
load("@rules_prerender//:repositories.bzl", "rules_prerender_repositories")
rules_prerender_repositories()
load(
    "@rules_prerender//:npm_repositories.bzl",
    prerender_npm_repositories = "npm_repositories",
)
prerender_npm_repositories()

BREAKING CHANGES

  • The existing prerender_component, prerender_pages_unbundled, and prerender_pages have been deleted.
  • The following macros have been renamed:
    • prerender_component2 -> prerender_component
    • prerender_pages_unbundled2 -> prerender_pages_unbundled
    • prerender_pages2 -> prerender_pages.
  • This effectively deletes the old implementation of these macros and promotes the 2 variant in their place. Going forward these will be the only supported implementation.
  • See #40 for more info.