Sha256: e0e71533e702c8bb2687f3375582394fb5945f5e53fd21ffdf9676471313b1d2
Contents?: true
Size: 496 Bytes
Versions: 40
Compression:
Stored size: 496 Bytes
Contents
install_template_path = File.expand_path("../../install/template.rb", __dir__).freeze bin_path = ENV["BUNDLE_BIN"] || "./bin" 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_path}/rails app:template LOCATION=#{install_template_path}" else exec "#{RbConfig.ruby} #{bin_path}/rake rails:template LOCATION=#{install_template_path}" end end end
Version data entries
40 entries across 40 versions & 3 rubygems