Sha256: 3af042f12edf55101d65b0bf8fd64538b7e630bb9dfcf74db0044aa78d0d9746
Contents?: true
Size: 1.53 KB
Versions: 4
Compression:
Stored size: 1.53 KB
Contents
require "yard" require "rake" require_relative "rake/gwenGPT" require_relative "rake/ruby" require_relative "rake/rust" require_relative "rake/go" require_relative "rake/zig" module Peppermint end desc "install peppermint dependencies" task "peppermint:deps": [:"rust:deps"] do sh "command -v deno || curl -fsSL https://deno.land/x/install/install.sh | sh" end task :deno_fmt do 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 '*.json' -o -name '*.md' -o -name '*.js' \ -o -name '*.ts' -o -name '*.jsx' -o -name '*.tsx' \\) \ -and \\( -not -name 'package.json' \\) \ -and \\( -not -name 'package-lock.json' \\) \ -and -type f | xargs -r deno fmt SHELL end desc "update those dev config files...." task :"peppermint:update" do [".solargraph.yml", ".rubocop.yml", ".standard.yml", ".rspec", ".ruby-version", "biome.json"].each do |filename| FileUtils.cp (File.expand_path File.join __dir__, "..", "..", filename), Dir.pwd end if File.file? "package.json" FileUtils.cp (File.expand_path File.join __dir__, "..", "..", "Caddyfile"), Dir.pwd end end desc "format this repo" task fmt: [:"peppermint:deps", :deno_fmt, :"ruby:fmt", :"rust:fmt", :"go:fmt", :"zig:fmt"] desc "fix this repo" task fix: [:"peppermint:deps", :fmt, :"ruby:fix", :"rust:fix", :"go:fix"]
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
peppermint-0.1.14 | lib/peppermint/rake.rb |
peppermint-0.1.13 | lib/peppermint/rake.rb |
peppermint-0.1.12 | lib/peppermint/rake.rb |
peppermint-0.1.11 | lib/peppermint/rake.rb |