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