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-rubyIf Bundler is not being used to manage dependencies, install the gem by executing:
gem install rustywind-rubybundle exec rustywind
Refer to the Rustywind documentation for available options.
- Run
bin/setupto install dependencies. - Run
rake testto run the tests. - You can also run
bin/consolefor an interactive prompt that will allow you to experiment.
- Update the version number in
upstream.rbandversion.rb - Run
bundle exec rake clobber - Run
bundle exec rake download_binaries - Commit any changes and update changelog
- Run
bundle exec rake release, which will create a git tag for the version, push git commits and the created tag, and push the.gemfile to rubygems.org - Draft a new release on GitHub
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.
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.