Sha256: 026598b8d638885462a0a454adbc63e034646af41cdb18468330d0697d0dd325

Contents?: true

Size: 558 Bytes

Versions: 8

Compression:

Stored size: 558 Bytes

Contents

install_template_path = File.expand_path("../../install/template.rb", __dir__).freeze

namespace :webpacker do
  desc "Install Webpacker in this application"
  task install: [:check_node, :check_yarn] do
    install_template_path = File.expand_path("../../install/template.rb", __dir__)

    require "rails/generators"
    require "rails/generators/rails/app/app_generator"
    generator = Rails::Generators::AppGenerator.new [Jets.root], {force: ENV['FORCE']}, destination_root: Jets.root
    generator.apply install_template_path, verbose: false
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
jetpacker-0.7.0 lib/tasks/webpacker/install.rake
jetpacker-0.6.0 lib/tasks/webpacker/install.rake
jetpacker-0.5.0 lib/tasks/webpacker/install.rake
jetpacker-0.4.2 lib/tasks/webpacker/install.rake
jetpacker-0.4.1 lib/tasks/webpacker/install.rake
jetpacker-0.4.0 lib/tasks/webpacker/install.rake
jetpacker-0.3.0 lib/tasks/webpacker/install.rake
jetpacker-0.2.0 lib/tasks/webpacker/install.rake