A Ruby wrapper for rustywind, a CLI utility for sorting Tailwind CSS classes
Rustywind is a CLI utility for sorting Tailwind CSS classes.
This gem wraps the rustywind
executable in a Ruby gem, allowing it to be easily installed and used in Ruby projects.
While Tailwind CSS recommends Prettier for sorting CSS classes, a node-based build setup is required. Rustywind is self-contained and ideal for #nobuild setups. Its also fast.
To install the gem and add it to your application’s Gemfile, execute:
bundle add rustywind-ruby
If Bundler is not being used to manage dependencies, install the gem by executing:
gem install rustywind-ruby
bundle exec rustywind
Refer to the Rustywind documentation for available options.
bin/setup
to install dependencies.rake test
to run the tests.bin/console
for an interactive prompt that will allow you to experiment.upstream.rb
and version.rb
bundle exec rake clobber
bundle exec rake download_binaries
bundle exec rake release
, which will create a git tag for the version, push git commits and the created tag, and push the .gem
file to rubygems.orgVersions of this library are based on the upstream Rustywind library. For additional releases of this library for the same version of Rustywind, an additional digit will be used.
Bug reports and pull requests are welcome on GitHub at https://github.com/markhesketh/rustywind-ruby.
The gem is available as open source under the terms of the MIT License.
This project also includes code from the upstream Rustywind library, which is available under its own license. For more details, see the Rustywind license.