diff --git a/build.zig b/build.zig index b9030c2..579bf11 100644 --- a/build.zig +++ b/build.zig @@ -154,6 +154,7 @@ pub const Cart = struct { b.getInstallStep().dependOn(&install_artifact_step.step); const watch_run = b.addRunArtifact(d.artifact("watch")); + watch_run.step.dependOn(&install_artifact_step.step); // watch_run.addArgs(&.{ "serve", b.graph.zig_exe, "--input-dir", b.pathFromRoot(std.fs.path.dirname(options.root_source_file) orelse ""), "--cart", b.pathFromRoot("zig-out/bin/feature_test.wasm") }); watch_run.addArgs(&.{ "serve", b.graph.zig_exe }); if (opt.watch_dirs) |dirs| { diff --git a/docs/introduction/README.md b/docs/introduction/README.md index af7978a..5d4b3d4 100644 --- a/docs/introduction/README.md +++ b/docs/introduction/README.md @@ -39,6 +39,8 @@ See `src/hello.zig` and tweak the the values to your liking. I recommend quickly The simulator is ideal for fast iteration as it supports live reloading. +Run `zig build` and wait for build to finish. + Run `zig build watch` and head over to https://badgesim.microzig.tech/. (It's been noted that the live reloaders may be a little finnicky. If they don't work at all, please let Auguste know.)