Sha256: a504e2dec9fb1f936d07d282f0a55c8581b05622af6264c97e66fa28c1d9f861

Contents?: true

Size: 1.41 KB

Versions: 1

Compression:

Stored size: 1.41 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 deps: [:"rust:deps"] do
  sh "command -v deno || curl -fsSL https://deno.land/x/install/install.sh | sh"
end

# desc "run deno fmt"
task :deno_fmt do
  sh <<~SHELL
    find . \\( -not -path '*/target/*' \\) \
      -and \\( -not -path '*/node_modules/*' \\) \
      -and \\( -not -path '*/dist/*' \\) \
      -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"].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: [:deps, :deno_fmt, :"ruby:fmt", :"rust:fmt", :"go:fmt", :"zig:fmt"]

desc "fix this repo"
task fix: [:deps, :fmt, :"ruby:fix", :"rust:fix", :"go:fix"]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
peppermint-0.1.9 lib/peppermint/rake.rb