view gui_ze/README.md @ 222:a8d6435dc021 hg-web

[hg-web] Run local stack through Bazel
author MrJuneJune <me@mrjunejune.com>
date Sun, 02 Aug 2026 09:07:36 -0700
parents b818a4561a3c
children
line wrap: on
line source

# gui_ze

Bazel rules for building GUI applications and web frontends.

## Files

| File | Description |
|------|-------------|
| `gui_ze.bzl` | Starlark rules for web/GUI builds |
| `time_to_first_byte.sh` | TTFB measurement script |

## Rules

Provides Bazel rules for:
- Bundling JavaScript/TypeScript with esbuild
- Building WASM modules with Emscripten
- Packaging web applications

## Usage

```starlark
load("//gui_ze:gui_ze.bzl", "web_bundle", "wasm_cc_binary")

web_bundle(
    name = "app",
    entry_point = "src/main.tsx",
    ...
)
```