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