Sha256: ba69b271bb4b4298cb5dfb3fdcbce82aba060f497f4a32adc3a08f904fad8da9
Contents?: true
Size: 519 Bytes
Versions: 10
Compression:
Stored size: 519 Bytes
Contents
namespace :webpacker do desc "Support for older Rails versions. Install all JavaScript dependencies as specified via Yarn" task :yarn_install do system "yarn install --no-progress" exit(1) unless $?.success? end end def enhance_yarn_install Rake::Task["yarn:install"].enhance do exit(1) unless $?.success? end end if Rake::Task.task_defined?("yarn:install") enhance_yarn_install else # this is mainly for pre-5.x era Rake::Task.define_task("yarn:install" => "webpacker:yarn_install") end
Version data entries
10 entries across 10 versions & 2 rubygems