lib/tasks/coco_tasks.rake in coveragebook_components-0.14.0 vs lib/tasks/coco_tasks.rake in coveragebook_components-0.15.0
- old
+ new
@@ -3,19 +3,21 @@
namespace :coco do
desc "Run tests"
task :test, [:files] do |task, args|
puts "🥥 Running Ruby tests..."
system "npm run build:dev"
+ system "cd lookbook; npm run build:dev"
system "bundle exec rake test TEST=#{args.files || "test/**/*_test.rb"}"
puts "✅ Ruby tests complete"
end
namespace :test do
desc "Run tests in CI"
task :ci do
puts "🥥 Building assets..."
Rake::Task["coco:assets:build"].execute
+ system "cd lookbook; npm run build"
puts "🥥 Running Ruby tests..."
Rake::Task["test"].execute
puts "✅ Ruby tests complete"
end
end
@@ -42,13 +44,14 @@
puts "✅ prettier complete"
end
end
namespace :assets do
- desc "Build assets"
+ desc "Build production assets"
task :build do
puts "🥥 Building assets..."
system "npm run build"
+ system "cd lookbook && npm run build"
puts "✅ Asset build complete"
end
end
namespace :gem do