Sha256: 04d7bf7a5e1085794c72fddb8b5a6eb7f5c2ee332c411836fb8ce11f0849a406

Contents?: true

Size: 893 Bytes

Versions: 12

Compression:

Stored size: 893 Bytes

Contents

require 'rails/generators'

    def add_required_gems
      gem 'slim'
      gem 'simple_form'
      system("yarn add bootstrap")
      system("yarn add @fortawesome/fontawesome-free")
      system("yarn add select2")
      system("yarn add daterangepicker")
      system("yarn add jgrowl")
    end

    def copy_layout_file
      copy_file "layouts/_side_navbar.html.slim", "app/views/layouts/_side_navbar.html.slim"
      copy_file "layouts/_navbar.html.slim", "app/views/layouts/_navbar.html.slim"
      remove_file "app/views/layouts/application.html.erb"
      copy_file "layouts/application.html.slim", "app/views/layouts/application.html.slim"
    end

    def copy_asset_file
      copy_file "assets/images/cm.png", "app/assets/images/cm.png"
      directory "assets/stylesheets/", "app/assets/stylesheets/"
      remove_file "app/assets/stylesheets/application.css"
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
cm-admin-0.5.7 lib/generators/cm_admin/install_generator.rb
cm-admin-0.5.6 lib/generators/cm_admin/install_generator.rb
cm-admin-0.5.5 lib/generators/cm_admin/install_generator.rb
cm-admin-0.5.4 lib/generators/cm_admin/install_generator.rb
cm-admin-0.5.3 lib/generators/cm_admin/install_generator.rb
cm-admin-0.5.2 lib/generators/cm_admin/install_generator.rb
cm-admin-0.5.0 lib/generators/cm_admin/install_generator.rb
cm-admin-0.4.4 lib/generators/cm_admin/install_generator.rb
cm-admin-0.4.3 lib/generators/cm_admin/install_generator.rb
cm-admin-0.4.2 lib/generators/cm_admin/install_generator.rb
cm-admin-0.4.1 lib/generators/cm_admin/install_generator.rb
cm-admin-0.4.0 lib/generators/cm_admin/install_generator.rb