Sha256: aaec1c31a3be32c92c266a872f460beb37df1c031155a0368ff7a80e9f10e072
Contents?: true
Size: 1.17 KB
Versions: 1
Compression:
Stored size: 1.17 KB
Contents
require "rspec/core/rake_task" require "yard" require_relative "gwenGPT" RSpec::Core::RakeTask.new(:spec) RuboCop::RakeTask.new do |t| t.requires << "rubocop-rake" end YARD::Rake::YardocTask.new do |t| t.files = ["lib/**/*.rb"] t.options = ["--any", "--extra", "--opts"] t.stats_options = ["--list-undoc"] end # desc "install deno idempotently" task :deno_install 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 '*/doc' \\) \ -and \\( -name '*.json' -o -name '*.md' -o -name '*.js' \ -o -name '*.ts' -o -name '*.jsx' -o -name '*.tsx' \\) \ -and \\( -not -name 'project.json' \\) \ -and \\( -not -name 'personal.json' \\) \ -and -type f | xargs -r deno fmt SHELL end desc "update those devel config files...." task :update_devel_config 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
peppermint-0.1.6 | lib/peppermint/rake/shared.rake |