Releases: fremtind/rules_vitest
Releases · fremtind/rules_vitest
v0.2.1
Using Bzlmod with Bazel 6 or greater
- (Bazel 6 only) Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "fremtind_rules_vitest", version = "0.2.1")
Using WORKSPACE
Paste this snippet into your WORKSPACE.bazel
file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "fremtind_rules_vitest",
sha256 = "5565ef6ce0953d02e0fd645842841f94b3547b09bbff0e08ae27d6bbd350b952",
strip_prefix = "rules_vitest-0.2.1",
url = "https://github.com/fremtind/rules_vitest/releases/download/v0.2.1/rules_vitest-v0.2.1.tar.gz",
)
####################
# fremtind_rules_vitest setup #
####################
# Fetches the fremtind_rules_vitest 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("@fremtind_rules_vitest//vitest:dependencies.bzl", "rules_vitest_dependencies")
rules_vitest_dependencies()
load("@aspect_rules_js//js:toolchains.bzl", "DEFAULT_NODE_VERSION", "rules_js_register_toolchains")
rules_js_register_toolchains(node_version = DEFAULT_NODE_VERSION)
load("@aspect_rules_js//npm:repositories.bzl", "npm_translate_lock")
npm_translate_lock(
name = "npm",
npmrc = "//:.npmrc",
pnpm_lock = "//:pnpm-lock.yaml",
verify_node_modules_ignored = "//:.bazelignore",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()
What's Changed
Full Changelog: v0.2.0...v0.2.1
v0.2.0
Using Bzlmod with Bazel 6 or greater
- (Bazel 6 only) Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "fremtind_rules_vitest", version = "0.2.0")
Using WORKSPACE
Paste this snippet into your WORKSPACE.bazel
file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "fremtind_rules_vitest",
sha256 = "b9713b368a09e8b2c546cb0612be30e809bd5aa5030930ff7f50b9829e3935fc",
strip_prefix = "rules_vitest-0.2.0",
url = "https://github.com/fremtind/rules_vitest/releases/download/v0.2.0/rules_vitest-v0.2.0.tar.gz",
)
####################
# fremtind_rules_vitest setup #
####################
# Fetches the fremtind_rules_vitest 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("@fremtind_rules_vitest//vitest:dependencies.bzl", "rules_vitest_dependencies")
rules_vitest_dependencies()
load("@aspect_rules_js//js:toolchains.bzl", "DEFAULT_NODE_VERSION", "rules_js_register_toolchains")
rules_js_register_toolchains(node_version = DEFAULT_NODE_VERSION)
load("@aspect_rules_js//npm:repositories.bzl", "npm_translate_lock")
npm_translate_lock(
name = "npm",
npmrc = "//:.npmrc",
pnpm_lock = "//:pnpm-lock.yaml",
verify_node_modules_ignored = "//:.bazelignore",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()
What's Changed
- Set correct repo reference in MODULE.bazel by @hjellek in #13
- Added Magnus Raaum as maintainer by @hjellek in #12
- Upgrade to rules_js 2.0 by @hjellek in #16
Full Changelog: v0.1.0...v0.2.0
v0.1.0
Using Bzlmod with Bazel 6 or greater
- (Bazel 6 only) Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "fremtind_rules_vitest", version = "0.1.0")
Using WORKSPACE
Paste this snippet into your WORKSPACE.bazel
file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "fremtind_rules_vitest",
sha256 = "b4cf44ec735b3dc1476a83c7bfeec8410e0f2e1346f0143cc88f8b3f9e3ebff8",
strip_prefix = "rules_vitest-0.1.0",
url = "https://github.com/fremtind/rules_vitest/releases/download/v0.1.0/rules_vitest-v0.1.0.tar.gz",
)
####################
# fremtind_rules_vitest setup #
####################
# Fetches the fremtind_rules_vitest 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("@fremtind_rules_vitest//vitest:dependencies.bzl", "rules_vitest_dependencies")
rules_vitest_dependencies()
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",
npmrc = "//:.npmrc",
pnpm_lock = "//:pnpm-lock.yaml",
verify_node_modules_ignored = "//:.bazelignore",
)
load("@npm//:repositories.bzl", "npm_repositories")
npm_repositories()
What's Changed
- Rewrite Jest to Vitest by @hjellek in #4
- Use specific version of release workflow by @hjellek in #7
- Fix windows build failure by @hjellek in #8
- Fix release prep script by @hjellek in #10
- Create SECURITY.md by @hjellek in #9
- Align rules_js and bazel_lib versions throughout the project by @hjellek in #11
New Contributors
Full Changelog: https://github.com/fremtind/rules_vitest/commits/v0.1.0