@florentferry florentferry released this Jul 3, 2018 · 9 commits to master since this release

Assets 2

Enhancements:

  • Component generator: use component_name instead of module_name in templates, so when we create a button component, by default it contains button instead of button_component

Bug fixes:

  • Component generator: fix error when the single-quotes are used in imports*

@florentferry florentferry released this May 31, 2018 · 16 commits to master since this release

Assets 2

Enhancements:

  • Block given to component now pass return values

@florentferry florentferry released this Apr 22, 2018 · 21 commits to master since this release

Assets 2

Enhancements:

  • Use lazy lookup for translations in all generator templates

@florentferry florentferry released this Apr 12, 2018 · 31 commits to master since this release

Assets 2

Breaking changes:

  • Removed deprecated render_partial method
  • Removed rendering of namespaced component with the old naming convention

Enhancements:

  • Changed @block_given_to_component from an instance variable to a method block_given_to_component available in the view context
  • Implemented component caching with the cached: true option
  • Added a stylesheet_engine option to Komponent configuration
  • When generating a new component, the frozen_string_literal: true magic comment is prepended to Ruby files

@florentferry florentferry released this Mar 5, 2018 · 57 commits to master since this release

Assets 2

Enhancements:

  • Added frozen_string_literal option to optimize performance
  • Removed useless autoload_paths config definition (it was not taken into account)
  • Install generator can be ran several times in order to enable features
  • Autoloading is now appended to config/application.rb when you run rails g komponent:install
  • Make all locals passed to component helper available through properties helper method

@florentferry florentferry released this Feb 22, 2018 · 75 commits to master since this release

Assets 2

Enhancements:

  • Custom destroy for the component generator: you can now safely run rails d component button

Bug fixes:

  • Fix crash when nil is passed to a component

@florentferry florentferry released this Feb 13, 2018 · 90 commits to master since this release

Assets 2

Enhancements:

  • Support for Stimulus 1.0
  • imports are now sorted alphabetically every time you run the component generator
  • Added the block_given_to_component? helper to components

@florentferry florentferry released this Jan 20, 2018 · 111 commits to master since this release

Assets 2

Enhancements:

  • Add an option to change default root path where Komponent is installed, and components are generated

@florentferry florentferry released this Jan 12, 2018 · 129 commits to master since this release

Assets 2

Enhancements:

  • stimulus integration
  • Component generator supports css, scss, sass stylesheet engine
  • Add a component path resolver

Bug fixes

  • Make content_for work in component
  • Fix issue with wrong stylesheet extension being used when
    imported in JavaScript files

Deprecation

  • render_partial is deprecated in favor of default render
  • The file naming convention will be changed in the next major version, for namespaced components, to include the namespace:
    • frontend/components/admin/button/_button.html.slim -> frontend/components/admin/button/_admin_button.html.slim
    • frontend/components/admin/button/button.js -> frontend/components/admin/button/admin_button.js
    • frontend/components/admin/button/button.css -> frontend/components/admin/button/admin_button.css

@florentferry florentferry released this Jan 1, 2018 · 202 commits to master since this release

Assets 2

Enhancements:

  • Components namespacing
  • Implement basic features
  • Implement render_partial helper