Sha256: 8c89c42881490507caddab091df377dce3177700d62ab440cdc11ba80e0201a7

Contents?: true

Size: 687 Bytes

Versions: 228

Compression:

Stored size: 687 Bytes

Contents

require 'thor'

# These commands are ran after rake webpacker:install to enhance the generated
# javascript assets to support Jets.
# Done this way so it works for both jets new and jets webpacker:install
class Jets::Commands::WebpackerTemplate < Thor::Group
  include Thor::Actions

  class_option :force, desc: "Bypass confirmation and overwrite existing files."
  class_option :bootstrap, type: :boolean, default: true, desc: "Install bootstrap"
  def self.source_root
    File.expand_path("templates/webpacker", File.dirname(__FILE__))
  end

  def reapply_templates
    directory "app/javascript", "app/javascript", force: options[:force]#, bootstrap: options[:bootstrap]
  end
end

Version data entries

228 entries across 228 versions & 4 rubygems

Version Path
jets-4.0.12 lib/jets/commands/webpacker_template.rb
jets-4.0.11 lib/jets/commands/webpacker_template.rb
jets-4.0.10 lib/jets/commands/webpacker_template.rb
jets-4.0.9 lib/jets/commands/webpacker_template.rb
jets-4.0.8 lib/jets/commands/webpacker_template.rb
jets-4.0.7 lib/jets/commands/webpacker_template.rb
jets-4.0.6 lib/jets/commands/webpacker_template.rb
jets-4.0.5 lib/jets/commands/webpacker_template.rb
jets-4.0.4 lib/jets/commands/webpacker_template.rb
jets-4.0.3 lib/jets/commands/webpacker_template.rb
jets-4.0.2 lib/jets/commands/webpacker_template.rb
jets-4.0.1 lib/jets/commands/webpacker_template.rb
jets-4.0.0 lib/jets/commands/webpacker_template.rb
jets-3.2.2 lib/jets/commands/webpacker_template.rb
jets-3.2.1 lib/jets/commands/webpacker_template.rb
jets.benforeva-3.0.17.pre.mount.pre.fix lib/jets/commands/webpacker_template.rb
jets-3.2.0 lib/jets/commands/webpacker_template.rb
jets-3.1.5 lib/jets/commands/webpacker_template.rb
jets-3.1.4 lib/jets/commands/webpacker_template.rb
jets-3.1.3 lib/jets/commands/webpacker_template.rb