Skip to content

v0.5.0

Latest
Compare
Choose a tag to compare
@borama borama released this 08 Aug 13:15

Restructure the gem completely:

  • extract FileSorter (that can sort classes in a file) and a new StringSorter (that can sort classes in a string)
  • clean up the code into their own modules / classes
  • add a DSL for running the sorters from ruby code
  • enhance the tests

BREAKING CHANGE: if you called the file sorter from ruby like this:

TailwindSorter::Sorter.run(file_name, warn_only: true/false, config_file: "some_config")

you need to change the call to the new syntax:

TailwindSorter.sort_file(file_name, warn_only: true/false, config_file: "some_config")