komponent 2.2.0 → 3.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.editorconfig +14 -0
- data/.gitignore +2 -0
- data/.rubocop.yml +10 -7
- data/.travis.yml +4 -5
- data/Appraisals +15 -0
- data/CHANGELOG.md +19 -1
- data/Gemfile +1 -0
- data/README.md +75 -25
- data/app/controllers/komponent/styleguide_controller.rb +20 -0
- data/app/views/komponent/styleguide/index.html.erb +9 -0
- data/app/views/komponent/styleguide/missing_template.html.erb +3 -0
- data/app/views/komponent/styleguide/show.html.erb +1 -0
- data/app/views/layouts/komponent.html.erb +17 -0
- data/config/routes.rb +5 -0
- data/komponent.gemspec +6 -5
- data/lib/generators/component/component_generator.rb +19 -3
- data/lib/generators/component/templates/examples.html.erb.erb +3 -0
- data/lib/generators/component/templates/examples.html.haml.erb +3 -0
- data/lib/generators/component/templates/examples.html.slim.erb +3 -0
- data/lib/generators/component/templates/stimulus_view.html.haml.erb +1 -1
- data/lib/generators/component/templates/view.html.haml.erb +1 -1
- data/lib/generators/komponent/examples_generator.rb +40 -0
- data/lib/generators/komponent/install_generator.rb +37 -41
- data/lib/generators/komponent/styleguide_generator.rb +41 -0
- data/lib/generators/komponent/templates/styleguide/components/container/_komponent_container.html.erb +3 -0
- data/lib/generators/komponent/templates/styleguide/components/container/komponent_container.css +17 -0
- data/lib/generators/komponent/templates/styleguide/components/container/komponent_container.js +1 -0
- data/lib/generators/komponent/templates/styleguide/components/container/komponent_container_component.rb +5 -0
- data/lib/generators/komponent/templates/styleguide/components/footer/_komponent_footer.html.erb +3 -0
- data/lib/generators/komponent/templates/styleguide/components/footer/komponent_footer.css +27 -0
- data/lib/generators/komponent/templates/styleguide/components/footer/komponent_footer.js +1 -0
- data/lib/generators/komponent/templates/styleguide/components/footer/komponent_footer_component.rb +5 -0
- data/lib/generators/komponent/templates/styleguide/components/header/_komponent_header.html.erb +3 -0
- data/lib/generators/komponent/templates/styleguide/components/header/komponent_header.css +15 -0
- data/lib/generators/komponent/templates/styleguide/components/header/komponent_header.js +1 -0
- data/lib/generators/komponent/templates/styleguide/components/header/komponent_header_component.rb +5 -0
- data/lib/generators/komponent/templates/styleguide/components/index.js +4 -0
- data/lib/generators/komponent/templates/styleguide/components/sidebar/_komponent_sidebar.html.erb +10 -0
- data/lib/generators/komponent/templates/styleguide/components/sidebar/komponent_sidebar.css +43 -0
- data/lib/generators/komponent/templates/styleguide/components/sidebar/komponent_sidebar.js +1 -0
- data/lib/generators/komponent/templates/styleguide/components/sidebar/komponent_sidebar_component.rb +5 -0
- data/lib/generators/komponent/templates/styleguide/packs/komponent.js +2 -0
- data/lib/generators/komponent/utils.rb +49 -0
- data/lib/komponent.rb +2 -2
- data/lib/komponent/component.rb +55 -0
- data/lib/komponent/component_path_resolver.rb +6 -6
- data/lib/komponent/component_renderer.rb +3 -1
- data/lib/komponent/{railtie.rb → engine.rb} +21 -1
- data/lib/komponent/komponent_helper.rb +29 -0
- data/lib/komponent/rails/tasks/komponent.rake +12 -0
- data/lib/komponent/translation.rb +15 -3
- data/lib/komponent/version.rb +1 -1
- metadata +62 -18
- data/gemfiles/Gemfile-rails.4.2.x +0 -8
- data/gemfiles/Gemfile-rails.5.0.x +0 -8
- data/gemfiles/Gemfile-rails.5.1.x +0 -8
- data/gemfiles/Gemfile-rails.5.2.x +0 -8