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

Version Path
webpacker-3.6.0 lib/tasks/webpacker/install.rake
webpacker-3.5.5 lib/tasks/webpacker/install.rake
webpacker-3.5.3 lib/tasks/webpacker/install.rake
webpacker-3.5.2 lib/tasks/webpacker/install.rake
webpacker-3.5.1 lib/tasks/webpacker/install.rake
webpacker-3.5.0 lib/tasks/webpacker/install.rake
webpacker-3.4.3 lib/tasks/webpacker/install.rake
webpacker-4.0.0.pre.pre.2 lib/tasks/webpacker/install.rake
webpacker-4.0.0.pre.pre.1 lib/tasks/webpacker/install.rake
webpacker-3.4.1 lib/tasks/webpacker/install.rake
webpacker-3.4.0 lib/tasks/webpacker/install.rake
webpacker-3.3.1 lib/tasks/webpacker/install.rake
webpacker-3.3.0 lib/tasks/webpacker/install.rake
webpacker-3.2.2 lib/tasks/webpacker/install.rake
webpacker-3.2.1 lib/tasks/webpacker/install.rake
webpacker-3.2.0 lib/tasks/webpacker/install.rake
webpacker-3.1.1 lib/tasks/webpacker/install.rake
webpacker-3.1.0 lib/tasks/webpacker/install.rake