Bloat is a tiny wrapper around a Thor apply
call, and allows running arbitrary Thor template code from anywhere!
In a ruby project, you can add bloat
to your Gemfile
For non-ruby projects, you'll need to install ruby, and then gem install bloat
Just run bloat with {template_url}
, and the content at the template will be run from your current directory! For examples of what you might want to do, check out RailsBytes.
Let's check out using bloat
to make templates from RailsBytes work in a Lucky application.
We can add the lovely StimulusJS library to Lucky our app with one command!
bloat with https://railsbytes.com/script/zl0sKQ
bloat with https://railsbytes.com/script/VeKsGg
bloat with https://railsbytes.com/script/zl0sNL
bloat with https://railsbytes.com/script/VQLsab