Sha256: 7a6028105a96d47cbacb2396686ac0c5a52efd08f3b4cda86c710391cb7d06d9

Contents?: true

Size: 458 Bytes

Versions: 13

Compression:

Stored size: 458 Bytes

Contents

binstubs_template_path = File.expand_path("../../install/binstubs.rb", __dir__).freeze

namespace :webpacker do
  desc "Installs Webpacker binstubs in this application"
  task binstubs: [:check_node, :check_yarn] do
    if Rails::VERSION::MAJOR >= 5
      exec "#{RbConfig.ruby} ./bin/rails app:template LOCATION=#{binstubs_template_path}"
    else
      exec "#{RbConfig.ruby} ./bin/rake rails:template LOCATION=#{binstubs_template_path}"
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
webpacker-3.6.0 lib/tasks/webpacker/binstubs.rake
webpacker-3.5.5 lib/tasks/webpacker/binstubs.rake
webpacker-3.5.3 lib/tasks/webpacker/binstubs.rake
webpacker-3.5.2 lib/tasks/webpacker/binstubs.rake
webpacker-3.5.1 lib/tasks/webpacker/binstubs.rake
webpacker-3.5.0 lib/tasks/webpacker/binstubs.rake
webpacker-3.4.3 lib/tasks/webpacker/binstubs.rake
webpacker-4.0.0.pre.pre.2 lib/tasks/webpacker/binstubs.rake
webpacker-4.0.0.pre.pre.1 lib/tasks/webpacker/binstubs.rake
webpacker-3.4.1 lib/tasks/webpacker/binstubs.rake
webpacker-3.4.0 lib/tasks/webpacker/binstubs.rake
webpacker-3.3.1 lib/tasks/webpacker/binstubs.rake
webpacker-3.3.0 lib/tasks/webpacker/binstubs.rake