Vite Hanami

Build Status Maintainability Test Coverage Gem Version License

[website]: https://vite-rails.netlify.app/ [configuration reference]: https://vite-rails.netlify.app/config/ [features]: https://vite-rails.netlify.app/guide/introduction.html [guides]: https://vite-rails.netlify.app/guide/ [config]: https://vite-rails.netlify.app/config/ [vite_rails]: https://github.com/ElMassimo/vite_rails [webpacker]: https://github.com/rails/webpacker [vite]: http://vitejs.dev/ [config file]: https://github.com/ElMassimo/vite_rails/blob/main/vite-plugin-ruby/default.vite.json [example app]: https://github.com/ElMassimo/pingcrm-vite [heroku]: https://pingcrm-vite.herokuapp.com/ [Issues]: https://github.com/ElMassimo/vite_rails/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc [Discussions]: https://github.com/ElMassimo/vite_rails/discussions [vite_rails]: https://github.com/ElMassimo/vite_rails/tree/main/vite_rails [vite_ruby]: https://github.com/ElMassimo/vite_rails/tree/main/vite_ruby [vite_hanami]: https://github.com/ElMassimo/vite_rails/tree/main/vite_hanami [Vite] is to frontend tooling as Ruby to programming, pure joy! 😍 This library provides specific installation scripts for Hanami, as well as idiomatic tag helpers. ## Features ⚡️ - 💡 Instant server start - ⚡️ Blazing fast hot reload - 🚀 Zero-config deployments - 🤝 Integrated with assets:precompile - [And more!][features] ## Documentation 📖 Visit the [documentation website][website] to check out the [guides] and searchable [configuration reference]. ## Installation 💿 Add this line to your application's Gemfile: ```ruby gem 'vite_hanami' ``` Then, run: ```bash bundle install bundle exec vite install ``` This will generate configuration files and a sample setup. Additional installation instructions are available in the [documentation website][website]. ## Getting Started 💻 Restart your Hanami web server, and then run bin/vite dev to start the Vite development server. Visit any page and you should see a printed console output: `Vite ⚡️ Ruby`. For more [guides] and a full [configuration reference], check the [documentation website][website]. ## Contact ✉️ Please use [Issues] to report bugs you find, and [Discussions] to make feature requests or get help. Don't hesitate to _⭐️ star the project_ if you find it useful! ## Special Thanks 🙏 - [webpacker] - [vite] ## License The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).