require "rake" module Peppermint end task :"zig:fmt" do if File.file? "build.zig" sh <<~SHELL find . \\( -not -path '*/target/*' \\) \ -and \\( -not -path '*/node_modules/*' \\) \ -and \\( -not -path '*/dist/*' \\) \ -and \\( -not -path '*/doc/*' \\) \ -and \\( -name '*.zig' \\) \ -and -type f | xargs -r zig fmt SHELL end end