feat: bun dev target support

This commit is contained in:
Eric
2026-03-04 10:47:52 +01:00
parent a6dedca6f5
commit 5fe05921d4
8 changed files with 202 additions and 2 deletions

View File

@@ -1,5 +1,13 @@
load("//bun:defs.bzl", "bun_dev")
package(default_visibility = ["//visibility:public"])
exports_files([
"README.md",
"main.ts",
])
bun_dev(
name = "web_dev",
entry_point = "main.ts",
)

View File

@@ -1,3 +1,11 @@
# basic example
Placeholder for end-to-end bun rules example.
Minimal `bun_dev` example.
Run:
```bash
bazel run //examples/basic:web_dev
```
This starts Bun in watch mode for `main.ts`.

1
examples/basic/main.ts Normal file
View File

@@ -0,0 +1 @@
console.log("rules_bun bun_dev example");