Restructure the gem completely:
- extract
FileSorter
(that can sort classes in a file) and a newStringSorter
(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")