Sha256: 09a7b72c46abf132a229393a8a2fb30e8fdab1160e48b5682a46e82536b8eef8
Contents?: true
Size: 725 Bytes
Versions: 27
Compression:
Stored size: 725 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 puts "options #{options.inspect}" directory "app/javascript", "app/javascript", force: options[:force]#, bootstrap: options[:bootstrap] end end
Version data entries
27 entries across 27 versions & 1 rubygems