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