Sha256: 0550731ae73801c089a9071f1e5687edc550ea1b04b8cc4c4152368809e883d0

Contents?: true

Size: 479 Bytes

Versions: 8

Compression:

Stored size: 479 Bytes

Contents

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 '*/vendor/*' \\) \
        -and \\( -not -path '*/tmp/*' \\) \
        -and \\( -not -path '*/doc/*' \\) \
        -and \\( -name '*.zig' \\) \
        -and -type f | xargs -r zig fmt
    SHELL
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
peppermint-0.1.17 lib/peppermint/rake/zig.rb
peppermint-0.1.16 lib/peppermint/rake/zig.rb
peppermint-0.1.15 lib/peppermint/rake/zig.rb
peppermint-0.1.14 lib/peppermint/rake/zig.rb
peppermint-0.1.13 lib/peppermint/rake/zig.rb
peppermint-0.1.12 lib/peppermint/rake/zig.rb
peppermint-0.1.11 lib/peppermint/rake/zig.rb
peppermint-0.1.10 lib/peppermint/rake/zig.rb