Sha256: 572b1e5e266f728c6a46be6bbeb66306a244df4d16c80dac0bcea7d748c0b654

Contents?: true

Size: 671 Bytes

Versions: 55

Compression:

Stored size: 671 Bytes

Contents

module SemanticUi
  class InstallGenerator < Rails::Generators::Base

    source_root File.expand_path('templates', __dir__)

    desc 'Install Semantic UI assets to application'

    def install_semantic_ui
      javascripts = File.join('vendor', 'assets', 'javascripts', 'semantic_ui')
      stylesheets = File.join('vendor', 'assets', 'stylesheets', 'semantic_ui')

      copy_file 'semantic_ui.js', File.join(javascripts, 'semantic_ui.js')
      copy_file 'semantic_ui.css', File.join(stylesheets, 'semantic_ui.css')

      copy_file 'theme.config', File.join(stylesheets, 'theme.config')
      directory 'config', File.join(stylesheets, 'config')
    end

  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
less-rails-semantic_ui-2.3.1.0 lib/generators/semantic_ui/install/install_generator.rb
less-rails-semantic_ui-2.3.0.0 lib/generators/semantic_ui/install/install_generator.rb
less-rails-semantic_ui-2.2.13.0 lib/generators/semantic_ui/install/install_generator.rb
less-rails-semantic_ui-2.2.11.0 lib/generators/semantic_ui/install/install_generator.rb
less-rails-semantic_ui-2.2.10.0 lib/generators/semantic_ui/install/install_generator.rb
less-rails-semantic_ui-2.2.9.0 lib/generators/semantic_ui/install/install_generator.rb
less-rails-semantic_ui-2.2.6.0 lib/generators/semantic_ui/install/install_generator.rb
less-rails-semantic_ui-2.2.4.0 lib/generators/semantic_ui/install/install_generator.rb
less-rails-semantic_ui-2.2.3.0 lib/generators/semantic_ui/install/install_generator.rb
less-rails-semantic_ui-2.2.2.0 lib/generators/semantic_ui/install/install_generator.rb
less-rails-semantic_ui-2.2.1.0 lib/generators/semantic_ui/install/install_generator.rb
less-rails-semantic_ui-2.1.8.2 lib/generators/semantic_ui/install/install_generator.rb
less-rails-semantic_ui-2.1.8.1 lib/generators/semantic_ui/install/install_generator.rb
less-rails-semantic_ui-2.1.8.0 lib/generators/semantic_ui/install/install_generator.rb
less-rails-semantic_ui-2.1.7.0 lib/generators/semantic_ui/install/install_generator.rb
less-rails-semantic_ui-2.1.6.0 lib/generators/semantic_ui/install/install_generator.rb
less-rails-semantic_ui-2.1.5.0 lib/generators/semantic_ui/install/install_generator.rb
less-rails-semantic_ui-2.1.4.0 lib/generators/semantic_ui/install/install_generator.rb
less-rails-semantic_ui-2.0.7.0 lib/generators/semantic_ui/install/install_generator.rb
less-rails-semantic_ui-2.0.6.0 lib/generators/semantic_ui/install/install_generator.rb