Sha256: e77cb5cb3af05891dce5499e8ca3f9a7c923781b6a00777c7f608cb4d66142a5
Contents?: true
Size: 1.32 KB
Versions: 1
Compression:
Stored size: 1.32 KB
Contents
require "yard" require "rake" require_relative "gwenGPT" require_relative "ruby" require_relative "rust" 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"] desc "fix this repo" task fix: [:deps, :fmt, :"ruby:fix", :"rust:fix"]
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
peppermint-0.1.7 | lib/peppermint/rake/shared.rb |