From 714cf30572d9805dd659d681433ce0befab3b200 Mon Sep 17 00:00:00 2001 From: Altagos Date: Fri, 19 Jun 2026 20:28:41 +0200 Subject: [PATCH] update --- build.zig | 8 +------- build.zig.zon | 4 ++-- mise.toml | 5 +++-- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/build.zig b/build.zig index 0fe5346..d96c081 100644 --- a/build.zig +++ b/build.zig @@ -11,9 +11,6 @@ pub fn build(b: *std.Build) !void { } const compile_stylesheet = b.step("stylesheet", "Compile stylesheet from scss files"); - compile_stylesheet.result_cached = false; - std.debug.assert(try compile_stylesheet.addDirectoryWatchInput(b.path("style"))); - const compile_stylesheet_cmd_out = b.run(&.{ "sass", "--no-source-map", @@ -55,10 +52,7 @@ pub fn build(b: *std.Build) !void { .build_assets = &.{stylesheet}, }); run_zine.step.dependOn(&install_stylesheet.step); - - if (b.args) |args| { - run_zine.addArgs(args); - } + run_zine.addPassthruArgs(); serve.dependOn(&run_zine.step); } diff --git a/build.zig.zon b/build.zig.zon index e153222..8fd9a47 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -5,8 +5,8 @@ .minimum_zig_version = "0.15.0-dev.1149+4e6a04929", .dependencies = .{ .zine = .{ - .url = "git+https://github.com/kristoff-it/zine?ref=main#acf07577b158475c7d54f3461c3348b8a0a6a6d3", - .hash = "zine-0.11.2-ou6nIAVkLQEFYFBWLqQ1Jxyub0CG5kObgTQaeSq9cI9W", + .url = "git+https://github.com/kristoff-it/zine?ref=main#2a001538f25198cd5945aa7da72459a7fc1e53ba", + .hash = "zine-0.11.3-ou6nIBmEFgBJ5JdclWDJ8X1zcZ_ro5EqTnJFyPakukFJ", }, }, .paths = .{ diff --git a/mise.toml b/mise.toml index 00c7bd1..8f19a30 100644 --- a/mise.toml +++ b/mise.toml @@ -2,13 +2,14 @@ deno = "latest" "github:sass/dart-sass" = "latest" watchexec = "latest" -zig = "0.16.0" +zig = "master" +zls = "0.16.0" [tasks.watch] run = "watchexec -q -r -e scss,zig 'zig build serve -- --drafts'" [tasks.watch-index] -run = "watchexec -q -r -e scss,zig,shtml,smd 'zig build -Ddrafts; and deno run --allow-env --allow-run npm:pagefind --site zig-out/website'" +run = "watchexec -q -r -e scss,zig,shtml,smd 'zig build -Ddrafts; and deno run --allow-env --allow-run npm:pagefind --site zig-out/website --serve'" [tasks.dev] run = "zig build serve -- --drafts" -- 2.51.2