feat: new bun_build and bun_compile, extend bun_install

This commit is contained in:
eric
2026-03-15 00:11:55 +01:00
parent c446f23a35
commit a0bc998bd2
58 changed files with 1845 additions and 191 deletions

View File

@@ -3,7 +3,10 @@ load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
package(default_visibility = ["//visibility:public"])
exports_files([
"bun_build_support.bzl",
"bun_binary.bzl",
"bun_command.bzl",
"bun_compile.bzl",
"bun_bundle.bzl",
"bun_dev.bzl",
"bun_install.bzl",
@@ -15,20 +18,53 @@ exports_files([
"workspace.bzl",
])
bzl_library(
name = "bun_command_bzl",
srcs = ["bun_command.bzl"],
)
bzl_library(
name = "bun_build_support_bzl",
srcs = ["bun_build_support.bzl"],
deps = [
":bun_command_bzl",
":js_library_bzl",
],
)
bzl_library(
name = "bun_binary_bzl",
srcs = ["bun_binary.bzl"],
deps = [
":bun_command_bzl",
":js_library_bzl",
":workspace_bzl",
],
)
bzl_library(
name = "bun_compile_bzl",
srcs = ["bun_compile.bzl"],
deps = [
":bun_build_support_bzl",
],
)
bzl_library(
name = "bun_bundle_bzl",
srcs = ["bun_bundle.bzl"],
deps = [":js_library_bzl"],
deps = [
":bun_build_support_bzl",
],
)
bzl_library(
name = "bun_dev_bzl",
srcs = ["bun_dev.bzl"],
deps = [
":bun_command_bzl",
":workspace_bzl",
],
)
bzl_library(
@@ -39,12 +75,20 @@ bzl_library(
bzl_library(
name = "bun_script_bzl",
srcs = ["bun_script.bzl"],
deps = [
":bun_command_bzl",
":workspace_bzl",
],
)
bzl_library(
name = "bun_test_bzl",
srcs = ["bun_test.bzl"],
deps = [":js_library_bzl"],
deps = [
":bun_command_bzl",
":js_library_bzl",
":workspace_bzl",
],
)
bzl_library(