Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Don't precompile assets for API, Core and Sample gems

Damian Legawiec63fb99f602b6
diff --git a/core/lib/spree/testing_support/common_rake.rb b/core/lib/spree/testing_support/common_rake.rb
index f9eb2e6227..6200926a56 100644
--- a/core/lib/spree/testing_support/common_rake.rb
+++ b/core/lib/spree/testing_support/common_rake.rb
@@ -30,8 +30,10 @@ namespace :common do
puts 'Skipping installation no generator to run...'
end
- puts 'Precompiling assets...'
- system("bundle exec rake assets:precompile > #{File::NULL}")
+ unless ['spree/api', 'spree/core', 'spree/sample'].include?(ENV['LIB_NAME'])
+ puts 'Precompiling assets...'
+ system("bundle exec rake assets:precompile > #{File::NULL}")
+ end
end
task :seed do |_t|