Sha256: 6e0121a80a90e039f2c8d0ad8031c87168988a4ce40d8d5e3733473317ef1f8c

Contents?: true

Size: 394 Bytes

Versions: 1

Compression:

Stored size: 394 Bytes

Contents

WEBPACKER_APP_TEMPLATE_PATH = File.expand_path("../../install/template.rb", __dir__)

namespace :webpacker do
  desc "Install webpacker in this application"
  task :install do
    if Rails::VERSION::MAJOR >= 5
      exec "./bin/rails app:template LOCATION=#{WEBPACKER_APP_TEMPLATE_PATH}"
    else
      exec "./bin/rake rails:template LOCATION=#{WEBPACKER_APP_TEMPLATE_PATH}"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
webpacker-1.1 lib/tasks/webpacker/install.rake