0.0
The project is in a healthy, maintained state
A Ruby wrapper for rustywind, a CLI utility for sorting Tailwind CSS classes
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 5.0
~> 13.0
~> 2.3
~> 1.31
 Project Readme

Rustywind::Ruby

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.

Why Rustywind?

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.

Installation

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

Usage

bundle exec rustywind

Refer to the Rustywind documentation for available options.

Development

Local Setup

  • Run bin/setup to install dependencies.
  • Run rake test to run the tests.
  • You can also run bin/console for an interactive prompt that will allow you to experiment.

Releasing a new version

  • Update the version number in upstream.rb and version.rb
  • Run bundle exec rake clobber
  • Run bundle exec rake download_binaries
  • Run 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.org
  • Draft a new release on GitHub

Versioning

Versions 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.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/markhesketh/rustywind-ruby.

License

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.