Skip to content

Commit aaa77f4

Browse files
authored
Merge pull request #836 from catmeow72/add-run-web-step-to-zig
Add a run-web step to the Zig build file
2 parents cfb3afd + 0d118b8 commit aaa77f4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cli/assets/templates/zig/build.zig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,10 @@ pub fn build(b: *std.Build) !void {
2929

3030
const step_run = b.step("run", "compile and run the cart");
3131
step_run.dependOn(&run_exe.step);
32+
33+
const run_exe_web = b.addSystemCommand(&.{ "w4", "run"});
34+
run_exe_web.addArtifactArg(exe);
35+
36+
const step_run_web = b.step("run-web", "compile and run the cart in a web browser");
37+
step_run_web.dependOn(&run_exe_web.step);
3238
}

0 commit comments

Comments
 (0)