Sha256: 54c2e1e80200a3e093c3f1e23662baa266d722d1ca46b3757235589127f9d484
Contents?: true
Size: 1.27 KB
Versions: 34
Compression:
Stored size: 1.27 KB
Contents
namespace :coco do desc "Run Ruby and JS tests" task :test do puts "𥥠Running Ruby tests..." Rake::Task["test"].execute puts "â Ruby tests complete" puts "𥥠Running JS tests..." system "npm run js:test" puts "â JS tests complete" end task :lint do puts "𥥠Running standardrb..." Rake::Task["standard"].execute puts "â standardrb complete" puts "𥥠Running erblint..." system "bundle exec erblint --lint-all" puts "â erblint complete" puts "𥥠Running prettier..." system "npx prettier . --check --config ./package.json" puts "â prettier complete" end namespace :lint do desc "Lint & fix files" task :fix do puts "𥥠Running standardrb..." Rake::Task["standard:fix"].execute puts "â standardrb complete" puts "𥥠Running erb_lint..." system "bundle exec erblint --lint-all --autocorrect" puts "â erblint complete" puts "𥥠Running prettier..." system "npx prettier . --write --config ./package.json" puts "â prettier complete" end end namespace :assets do desc "Build assets" task :build do puts "𥥠Building assets..." system "npm run build" puts "â Asset build complete" end end end
Version data entries
34 entries across 34 versions & 1 rubygems