Sha256: 39ff123545f851166d2909eb8839760b0760c5a45b0a140ba3bf733ee360d6c8

Contents?: true

Size: 655 Bytes

Versions: 3

Compression:

Stored size: 655 Bytes

Contents

installers = {
  "Angular": :angular,
  "Elm": :elm,
  "React": :react,
  "Vue": :vue,
  "Erb": :erb,
  "Coffee": :coffee
}.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", __dir__)
        if Rails::VERSION::MAJOR >= 5
          exec "#{RbConfig.ruby} ./bin/rails app:template LOCATION=#{template}"
        else
          exec "#{RbConfig.ruby} ./bin/rake rails:template LOCATION=#{template}"
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
webpacker-jets-3.2.101 lib/tasks/installers.rake
webpacker-jets-3.2.100 lib/tasks/installers.rake
webpacker-3.2.0 lib/tasks/installers.rake