Sha256: 2b516dfc52f6fd11ae9445c43fe8addd531df8ce9e5dbf0898708c2e61638ded
Contents?: true
Size: 444 Bytes
Versions: 18
Compression:
Stored size: 444 Bytes
Contents
install_template_path = File.expand_path("../../install/template.rb", __dir__).freeze namespace :webpacker do desc "Install Webpacker in this application" task install: [:check_node, :check_yarn] do if Rails::VERSION::MAJOR >= 5 exec "#{RbConfig.ruby} ./bin/rails app:template LOCATION=#{install_template_path}" else exec "#{RbConfig.ruby} ./bin/rake rails:template LOCATION=#{install_template_path}" end end end
Version data entries
18 entries across 18 versions & 1 rubygems