Inital commit

This commit is contained in:
eric
2026-03-12 18:58:43 +01:00
commit 8555b02752
36 changed files with 3312 additions and 0 deletions

44
README.md Normal file
View File

@@ -0,0 +1,44 @@
# rules_wails
Reusable Bazel rules for Wails applications.
Layout:
- `wails/`: core Wails rules and Go-backed action helpers.
- `wails_bun/`: optional Bun frontend integration for projects that stage frontend packages through Bazel.
- `examples/`: minimal usage examples for core Go and Bun-backed Wails apps.
Public entrypoints:
- `@rules_wails//wails:defs.bzl`
- `@rules_wails//wails_bun:defs.bzl`
## Bzlmod usage
```starlark
bazel_dep(name = "rules_wails", version = "0.1.0")
```
The Bun integration expects the standard `rules_bun` repositories and toolchains to be available via this ruleset's module setup.
## Public API
Core rules:
- `wails_toolchain`
- `wails_build_assets`
- `wails_generate_bindings`
- `wails_run`
- `wails_app`
Bun integration:
- `wails_bun_frontend_dist`
- `wails_bun_frontend_dev`
- `wails_bun_dev_session`
- `wails_bun_app`
See:
- [core README](wails/README.md)
- [Bun README](wails_bun/README.md)