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

Version Path
coveragebook_components-0.8.5 lib/tasks/coco_tasks.rake
coveragebook_components-0.8.4 lib/tasks/coco_tasks.rake
coveragebook_components-0.8.3 lib/tasks/coco_tasks.rake
coveragebook_components-0.8.2 lib/tasks/coco_tasks.rake
coveragebook_components-0.8.1 lib/tasks/coco_tasks.rake
coveragebook_components-0.8.0 lib/tasks/coco_tasks.rake
coveragebook_components-0.8.0.beta.3 lib/tasks/coco_tasks.rake
coveragebook_components-0.8.0.beta.2 lib/tasks/coco_tasks.rake
coveragebook_components-0.8.0.beta.1 lib/tasks/coco_tasks.rake
coveragebook_components-0.7.10 lib/tasks/coco_tasks.rake
coveragebook_components-0.7.9 lib/tasks/coco_tasks.rake
coveragebook_components-0.7.8 lib/tasks/coco_tasks.rake
coveragebook_components-0.7.7 lib/tasks/coco_tasks.rake
coveragebook_components-0.7.6 lib/tasks/coco_tasks.rake
coveragebook_components-0.7.5 lib/tasks/coco_tasks.rake
coveragebook_components-0.7.4 lib/tasks/coco_tasks.rake
coveragebook_components-0.7.3 lib/tasks/coco_tasks.rake
coveragebook_components-0.7.2 lib/tasks/coco_tasks.rake
coveragebook_components-0.7.1 lib/tasks/coco_tasks.rake
coveragebook_components-0.7.0 lib/tasks/coco_tasks.rake