diff hg-web/BUILD @ 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 9f4429c49733
children 0e7b9464248d
line wrap: on
line diff
--- a/hg-web/BUILD	Sun Aug 02 09:01:24 2026 -0700
+++ b/hg-web/BUILD	Sun Aug 02 09:07:36 2026 -0700
@@ -1,4 +1,5 @@
 load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
+load("@rules_shell//shell:sh_binary.bzl", "sh_binary")
 load("//gui_ze:gui_ze.bzl", "move_files_into_dir", "bundle", "bun_bundle")
 
 # Source files
@@ -67,6 +68,15 @@
   data = [":all_assets"],
 )
 
+sh_binary(
+  name = "dev",
+  srcs = ["dev.sh"],
+  data = [
+    ":hg_web_server",
+    "@bazel_tools//tools/bash/runfiles",
+  ],
+)
+
 bundle(
   name = "hg_web_server_bundle",
   binary = ":hg_web_server",