v0.5.0
Pre-release
Pre-release
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_cypress",
sha256 = "bca909724a07bd52c9c0b01b461e1df019c3af28aecfd98de924c1d7c358166e",
strip_prefix = "rules_cypress-0.5.0",
url = "https://github.com/aspect-build/rules_cypress/releases/download/v0.5.0/rules_cypress-v0.5.0.tar.gz",
)
######################
# rules_cypress setup #
######################
# Fetches the rules_cypress dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@aspect_rules_cypress//cypress:dependencies.bzl", "rules_cypress_dependencies")
rules_cypress_dependencies()
load("@aspect_rules_cypress//cypress:repositories.bzl", "cypress_register_toolchains")
cypress_register_toolchains(
name = "cypress",
cypress_version = "13.6.6",
)
load("@aspect_rules_js//js:repositories.bzl", "rules_js_dependencies")
rules_js_dependencies()
load("@bazel_features//:deps.bzl", "bazel_features_deps")
bazel_features_deps()
load("@rules_nodejs//nodejs:repositories.bzl", "DEFAULT_NODE_VERSION", "nodejs_register_toolchains")
nodejs_register_toolchains(
name = "nodejs",
node_version = DEFAULT_NODE_VERSION,
)
load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")
npm_translate_lock(
name = "npm",
lifecycle_hooks_exclude = [
# Speed up installation by disabling cypress binary install. Optional.
"cypress",
],
npmrc = "//:.npmrc",
pnpm_lock = "//:pnpm-lock.yaml",
verify_node_modules_ignored = "//:.bazelignore",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()
What's Changed
- chore: tidy repo by @gregmagolan in #70
- chore: add BCR metadata by @gregmagolan in #71
- chore: add missing cypress versions from 10.0.0 to 13.6.6 by @gregmagolan in #75
- fix: Disable sandboxing for cypress_test rules by @mrmeku in #66
- chore: don't cancel concurrent main builds by @gregmagolan in #79
- chore: various cleanups by @mrmeku in #76
- fix: node toolchain should be a dev dependency in MODULE.bazel by @gregmagolan in #83
- chore: bump to GitHub Action actions/cache@v4 by @gregmagolan in #81
- refactor: don't default chdir to package_name() in _cypress_test_macro [BREAKING] by @gregmagolan in #84
Full Changelog: v0.4.0...v0.5.0