feat: bun dev target support
This commit is contained in:
@@ -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",
|
||||
)
|
||||
|
||||
@@ -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
1
examples/basic/main.ts
Normal file
@@ -0,0 +1 @@
|
||||
console.log("rules_bun bun_dev example");
|
||||
Reference in New Issue
Block a user