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