class Shoelace::Generators::InstallGenerator
Public Instance Methods
bring_in_css()
click to toggle source
# File lib/generators/shoelace/install_generator.rb, line 8 def bring_in_css insert_into_file "./app/assets/stylesheets/application.css", " *= require sl_styles_light.css\n", before: "*/" end
bring_in_js()
click to toggle source
# File lib/generators/shoelace/install_generator.rb, line 13 def bring_in_js append_to_file "config/importmap.rb", "\npin \"shoelace\", to: \"https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.0.0-beta.64/dist/shoelace.js\"" append_to_file "app/javascript/application.js", "\nimport \"shoelace\"" end