Sha256: d614901396b8457648e0e64703e5172efbf62f6f0067335dd310b7fb473fd171
Contents?: true
Size: 603 Bytes
Versions: 3
Compression:
Stored size: 603 Bytes
Contents
INSTALLERS = { Angular: :angular, Elm: :elm, React: :react, Vue: :vue }.freeze namespace :webpacker do namespace :install do INSTALLERS.each do |name, task_name| desc "Install everything needed for #{name}" task task_name => ["webpacker:verify_install"] do template = File.expand_path("../install/#{task_name}.rb", File.dirname(__FILE__)) if Rails::VERSION::MAJOR >= 5 exec "#{RbConfig.ruby} ./bin/rails app:template LOCATION=#{template}" else exec "rake rails:template LOCATION=#{template}" end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
webpacker-legacy-0.1.2 | lib/tasks/installers.rake |
webpacker-legacy-0.1.1 | lib/tasks/installers.rake |
webpacker-legacy-0.1.0 | lib/tasks/installers.rake |