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