Skip to content

Commit

Permalink
fixbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperAuguste committed May 15, 2024
1 parent bde3019 commit 5426757
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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| {
Expand Down
2 changes: 2 additions & 0 deletions docs/introduction/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.)
Expand Down

0 comments on commit 5426757

Please sign in to comment.