Class: Jets::Commands::WebpackerTemplate

Inherits:
Thor::Group
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/jets/commands/webpacker_template.rb

Overview

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 Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



11
12
13
# File 'lib/jets/commands/webpacker_template.rb', line 11

def self.source_root
  File.expand_path("templates/webpacker", File.dirname(__FILE__))
end

Instance Method Details

#reapply_templatesObject



15
16
17
# File 'lib/jets/commands/webpacker_template.rb', line 15

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