From 3c1ef9ef717f25341c445dc33a5c9e7b17b74217 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Mon, 19 Oct 2026 10:09:43 +0200 Subject: change hot mode to dev mode --- build.zig | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'build.zig') diff --git a/build.zig b/build.zig index 81b3db8..a805b17 100644 --- a/build.zig +++ b/build.zig @@ -125,13 +125,16 @@ pub fn build(b: *std.Build) void { }); docs_step.dependOn(&docs_install.step); - const hot_cmd = b.addSystemCommand(&.{ - "sh", + const dev_cmd = b.addSystemCommand(&.{ + "watchexec", + "-r", + "-I", "-c", - "clear; echo 'building in hot mode'; find src -type f | entr -r zig build run", + "clear", + "zig build run", }); - const hot_step = b.step("hot", "Run server in hot reload mode"); - hot_step.dependOn(&hot_cmd.step); + const dev_step = b.step("dev", "Run server in dev mode"); + dev_step.dependOn(&dev_cmd.step); run_cmd.step.dependOn(b.getInstallStep()); } -- cgit v1.2.3-70-g09d2