class CssZero::InstallGenerator

def add_basic_components

def add_basic_components
  invoke "css_zero:add", %w(layouts input switch button flash alert)
end

def copy_application_css

def copy_application_css
  copy_file "app/assets/stylesheets/application.css", force: true if sprockets?
end

def copy_application_layout

def copy_application_layout
  template "app/views/layouts/application.html.erb", force: true
end

def copy_base_css

def copy_base_css
  copy_file "app/assets/stylesheets/base.css"
end

def importmaps?

def importmaps?
  Rails.root.join("config/importmap.rb").exist?
end

def sprockets?

def sprockets?
  Rails.root.join("app/assets/config/manifest.js").exist?
end