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.
Files changed (58) hide show
  1. checksums.yaml +5 -5
  2. data/.editorconfig +14 -0
  3. data/.gitignore +2 -0
  4. data/.rubocop.yml +10 -7
  5. data/.travis.yml +4 -5
  6. data/Appraisals +15 -0
  7. data/CHANGELOG.md +19 -1
  8. data/Gemfile +1 -0
  9. data/README.md +75 -25
  10. data/app/controllers/komponent/styleguide_controller.rb +20 -0
  11. data/app/views/komponent/styleguide/index.html.erb +9 -0
  12. data/app/views/komponent/styleguide/missing_template.html.erb +3 -0
  13. data/app/views/komponent/styleguide/show.html.erb +1 -0
  14. data/app/views/layouts/komponent.html.erb +17 -0
  15. data/config/routes.rb +5 -0
  16. data/komponent.gemspec +6 -5
  17. data/lib/generators/component/component_generator.rb +19 -3
  18. data/lib/generators/component/templates/examples.html.erb.erb +3 -0
  19. data/lib/generators/component/templates/examples.html.haml.erb +3 -0
  20. data/lib/generators/component/templates/examples.html.slim.erb +3 -0
  21. data/lib/generators/component/templates/stimulus_view.html.haml.erb +1 -1
  22. data/lib/generators/component/templates/view.html.haml.erb +1 -1
  23. data/lib/generators/komponent/examples_generator.rb +40 -0
  24. data/lib/generators/komponent/install_generator.rb +37 -41
  25. data/lib/generators/komponent/styleguide_generator.rb +41 -0
  26. data/lib/generators/komponent/templates/styleguide/components/container/_komponent_container.html.erb +3 -0
  27. data/lib/generators/komponent/templates/styleguide/components/container/komponent_container.css +17 -0
  28. data/lib/generators/komponent/templates/styleguide/components/container/komponent_container.js +1 -0
  29. data/lib/generators/komponent/templates/styleguide/components/container/komponent_container_component.rb +5 -0
  30. data/lib/generators/komponent/templates/styleguide/components/footer/_komponent_footer.html.erb +3 -0
  31. data/lib/generators/komponent/templates/styleguide/components/footer/komponent_footer.css +27 -0
  32. data/lib/generators/komponent/templates/styleguide/components/footer/komponent_footer.js +1 -0
  33. data/lib/generators/komponent/templates/styleguide/components/footer/komponent_footer_component.rb +5 -0
  34. data/lib/generators/komponent/templates/styleguide/components/header/_komponent_header.html.erb +3 -0
  35. data/lib/generators/komponent/templates/styleguide/components/header/komponent_header.css +15 -0
  36. data/lib/generators/komponent/templates/styleguide/components/header/komponent_header.js +1 -0
  37. data/lib/generators/komponent/templates/styleguide/components/header/komponent_header_component.rb +5 -0
  38. data/lib/generators/komponent/templates/styleguide/components/index.js +4 -0
  39. data/lib/generators/komponent/templates/styleguide/components/sidebar/_komponent_sidebar.html.erb +10 -0
  40. data/lib/generators/komponent/templates/styleguide/components/sidebar/komponent_sidebar.css +43 -0
  41. data/lib/generators/komponent/templates/styleguide/components/sidebar/komponent_sidebar.js +1 -0
  42. data/lib/generators/komponent/templates/styleguide/components/sidebar/komponent_sidebar_component.rb +5 -0
  43. data/lib/generators/komponent/templates/styleguide/packs/komponent.js +2 -0
  44. data/lib/generators/komponent/utils.rb +49 -0
  45. data/lib/komponent.rb +2 -2
  46. data/lib/komponent/component.rb +55 -0
  47. data/lib/komponent/component_path_resolver.rb +6 -6
  48. data/lib/komponent/component_renderer.rb +3 -1
  49. data/lib/komponent/{railtie.rb → engine.rb} +21 -1
  50. data/lib/komponent/komponent_helper.rb +29 -0
  51. data/lib/komponent/rails/tasks/komponent.rake +12 -0
  52. data/lib/komponent/translation.rb +15 -3
  53. data/lib/komponent/version.rb +1 -1
  54. metadata +62 -18
  55. data/gemfiles/Gemfile-rails.4.2.x +0 -8
  56. data/gemfiles/Gemfile-rails.5.0.x +0 -8
  57. data/gemfiles/Gemfile-rails.5.1.x +0 -8
  58. data/gemfiles/Gemfile-rails.5.2.x +0 -8
@@ -1,8 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gem "komponent", path: ".."
4
-
5
- gem "rails", "~> 4.2"
6
- gem "rake", ">= 11.1"
7
- gem "rubocop", require: false
8
- gem "webpacker"
@@ -1,8 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gem "komponent", path: ".."
4
-
5
- gem "rails", "~> 5.0"
6
- gem "rake", ">= 11.1"
7
- gem "rubocop", require: false
8
- gem "webpacker"
@@ -1,8 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gem "komponent", path: ".."
4
-
5
- gem "rails", "~> 5.1"
6
- gem "rake", ">= 11.1"
7
- gem "rubocop", require: false
8
- gem "webpacker"
@@ -1,8 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gem "komponent", path: ".."
4
-
5
- gem "rails", "~> 5.2"
6
- gem "rake", ">= 11.1"
7
- gem "rubocop", require: false
8
- gem "webpacker"