Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A Ruby gem integrating Brunch.io with Rails for ES6 modules, live reload, and Yarn support.
Breakfast is a Ruby gem that integrates the Brunch.io build tool into Rails applications, giving developers ES6 module support, live reload for CSS, JS, and HTML, and a Yarn-managed frontend workflow.
Breakfast is a Ruby gem, not a standalone template, that connects the Brunch.io build tool to the Rails asset pipeline. It takes modern JavaScript source files (ES6 modules, CSS, HTML) and produces compiled assets that Rails serves, running inside your existing Rails app. The gem is maintained by devlocker and released under the MIT License, with version 0.6.6 as the latest patch.
Breakfast hooks into the Rails asset pipeline via Brunch. You install the gem and the corresponding JavaScript package, and it watches your source files, compiling them on demand. For production, the standard assets:precompile task now includes the behavior that previously required separate Capistrano rake tasks.
Breakfast is open source under the MIT License, meaning it is free to use for any purpose.
Yes, as of version 0.6.6, the gem removed a constraint on ActionCable, enabling support for Rails 6. Earlier versions required Rails 5.0 or later.
Yes, Breakfast is released under the MIT License, which permits free use, modification, and redistribution, including in commercial projects.
No. Starting with version 0.6.0, the custom Heroku buildpack was removed. You only need to configure the nodejs buildpack first and the ruby buildpack second.
Run bundle update breakfast, upgrade the breakfast-rails package with Yarn, and if deploying with Capistrano remove the require "breakfast/capistrano" line from your Capfile and any custom Breakfast settings. Then ensure Capistrano Rails is used.
Breakfast integrates Brunch.io with the Rails asset pipeline, and it uses Yarn for managing JavaScript packages. This combination provides ES6 compilation, live reload, and a straightforward build process.
