Sha256: 17a4e81f0aed97c5d07e485b18678434ea36f491cfd4adf630ab6935e1e6c172

Contents?: true

Size: 510 Bytes

Versions: 40

Compression:

Stored size: 510 Bytes

Contents

binstubs_template_path = File.expand_path("../../install/binstubs.rb", __dir__).freeze
bin_path = ENV["BUNDLE_BIN"] || "./bin"

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_path}/rails app:template LOCATION=#{binstubs_template_path}"
    else
      exec "#{RbConfig.ruby} #{bin_path}/rake rails:template LOCATION=#{binstubs_template_path}"
    end
  end
end

Version data entries

40 entries across 40 versions & 3 rubygems

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/webpacker-5.4.4/lib/tasks/webpacker/binstubs.rake
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/webpacker-5.4.4/lib/tasks/webpacker/binstubs.rake
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/webpacker-5.4.4/lib/tasks/webpacker/binstubs.rake
webpacker-5.4.4 lib/tasks/webpacker/binstubs.rake
webpacker-5.4.3 lib/tasks/webpacker/binstubs.rake
webpacker-5.4.2 lib/tasks/webpacker/binstubs.rake
webpacker-5.4.1 lib/tasks/webpacker/binstubs.rake
webpacker-5.4.0 lib/tasks/webpacker/binstubs.rake
webpacker-5.3.0 lib/tasks/webpacker/binstubs.rake
webpacker-5.2.2 lib/tasks/webpacker/binstubs.rake
webpacker-5.2.1 lib/tasks/webpacker/binstubs.rake
webpacker-4.3.0 lib/tasks/webpacker/binstubs.rake
webpacker-5.2.0 lib/tasks/webpacker/binstubs.rake
webpacker-5.1.1 lib/tasks/webpacker/binstubs.rake
webpacker-5.1.0 lib/tasks/webpacker/binstubs.rake
webpacker-5.0.1 lib/tasks/webpacker/binstubs.rake
webpacker-5.0.0 lib/tasks/webpacker/binstubs.rake
webpacker-4.2.2 lib/tasks/webpacker/binstubs.rake
webpacker-4.2.1 lib/tasks/webpacker/binstubs.rake
webpacker-4.2.0 lib/tasks/webpacker/binstubs.rake