Maximo Mussini retweeted
I created a Vite.js plugin: github.com/ermolaev/vite-plu… for faster HTML reloading in the browser using Hotwire Turbo (for Rails apps and beyond) instead of a full page refresh. It also supports HMR for Tailwind CSS.
Inspired by (forked from) @MaximoMussini vite-plugin-full-reload.
Maximo Mussini retweeted
Why I think Vite (Ruby) is the only viable option (among available today) for Rails apps?
It the only one that is capable* of surviving major framework upgrades, DHH mood swings and uncontrolled frontend tooling evolution.
Vite is kinda meta builder: it relies on esbuild and rollup for dirty work. Whenever a new shiny frontend builder appears and overcomes esbuild (which is a great builder, for sure), Vite would switch under the hood without enforcing you to migrate yourself.
Using Vite Rails instead of sprockets|propshaft+importmap|jsbundling|cssbundling|tailwindcss-rails|esbuild|bun (pick your own combination) allows you to stay independent of Rails frontend “evolution”. More major versions covered, less painful upgrades.
I switched to Vite ~3 years ago and forgot about asset pipeline stack upgrades. It works today in a similar fashion it worked back then.
Replying to @palkan_tula
I'm not using it as it's not standard Rails; vite gem requires several steps to configure.
I'm currently using esbuild + propshaft for projects that need JSX/TS, which works great. I believe that Vite uses esbuild behind the scenes.
Why is Vite the "only viable" asset pipeline.
Maximo Mussini retweeted
JS frameworks are just the better tradeoff for long-session productivity apps. Much higher upper-limit for the UX.
And the DX is not as complicated as some anti-JS folks claim to be - reminder that there are easy ways to integrate Vite in Rails: vite-ruby.netlify.app/guide/…
Announcing oj_serializers v2.0 ⚡️
🚀 Improved performance (20% to 40% faster)
🤩 Simplified API, easier to use
🛠 More configurable (transform keys, sort attributes)
✅ Backwards compatible
github.com/ElMassimo/oj_seri…
Upgraded types_from_serializers to support oj_serializers v.2.0 ✨
🤖 Automatically generate TypeScript
✅ Minimize bugs in the frontend
🕶 Infer native types from your SQL schema
🚀 Generated instantly on file changes
#ruby #rails
github.com/ElMassimo/types_f…
Maximo Mussini retweeted
⚡️ Join @MaximoMussini to learn how @vite_js can improve your development workflow, how to use it in Ruby web applications, and how it compares to other tools that are available in @rails!
❤️ youtu.be/SpeKA9fA6gg
💎✨New Release✨💎
Happy to announce that Vite Ruby will now install @vitejs 4 by default.
You can upgrade your #ruby and #rails projects by running:
⌨️ bin/vite upgrade
⚡️ Vite 4 is out!
From all of us on the Vite team, thanks a lot to everyone that contributed to Core, pushed improvements from your frameworks upstream, expanded the ever-growing plugin ecosystem, and triaged, tested, or helped others in our community 💜
vitejs.dev/blog/announcing-v…
My talk: Frontend Joy in Ruby on Rails at @ViteConf is about to start! Come watch! viteconf.org/live?talk=front…
Join me on the Discord channel to ask questions or chat about it:
discord.com/channels/8040116…
So excited to be a part of ViteConf this year! 😃
If you've heard of @vite_js but haven't gotten around to trying it yet, this talk has got you covered!
#vite #ruby #rails
❤️ We're happy to announce @MaximoMussini, creator of vite-ruby.netlify.app/, as ViteConf's next speaker! Join Maximo as he explains how to bringing joy to your @rails experience with @vite_js!
Join chat.vitejs.dev on Oct 11th to chat with Maximo and other speakers! 🙌
ViteConf Speaker Announcement - Maximo Mussini
Maximo Mussini retweeted
⚡️ Let's gather to welcome @patak_dev to the @ViteConf stage! Matias is going to take us on a tour of the ever-growing @vite_js Ecosystem 💚
Grab a free ticket at viteconf.org and join chat.vitejs.dev to discuss with speakers and the community on October 11-12!
ViteConf Speaker Announcement - Matias Capeletto
Recently had a chat about TypesFromSerializers and JsFromRoutes on the @rubyrogues podcast 💎
Thanks for having me on the show, had a blast!
#js #rails #ruby #codegen
Check out this week's episode of #RubyRogues with @MaximoMussini
#RUBY: How to Get Your Rails Models and Routes into Your Front End Framework
rfr.bz/t4k8mgk rfr.bz/t4k8mgk
Maximo Mussini retweeted
Rails 7 is almost here, yet I have only discovered that in Rails 6.1 there is a new `draw` macro that allows you to break up `routes.rb` into multiple small files. 😅
guides.rubyonrails.org/routi…
See you in @ViteConf! Ruby and Rails will be there as well! viteconf.org/tickets/elmassi…
Congrats to the @vite_js team and its contributors! 🎉
Thanks to vite-ecosystem-ci and the great collaboration spirit of the Vite core team, I'm happy to announce that you can try Vite 3 in Vite Ruby projects today! 💎⚡️
vite-ruby.netlify.app/guide/…
⚡️ Vite 3 is out!
The Vite Team, working closely with maintainers of the ecosystem, is happy to announce the next @vite_js major! Thanks to everyone involved in making this release possible 🙌
vitejs.dev/blog/announcing-v…
Maximo Mussini retweeted
⚡️ Vite 3 is out!
The Vite Team, working closely with maintainers of the ecosystem, is happy to announce the next @vite_js major! Thanks to everyone involved in making this release possible 🙌
vitejs.dev/blog/announcing-v…
✨💎 New Ruby Gem Alert! 💎✨
Automatic TypeScript interfaces from your Ruby serializers
✅ Minimize bugs in the frontend, fully typed
🤩 Infers native types from your SQL schema
🚀 Generated instantly on file changes
🛠 Fully configurable
#ruby #rails
github.com/ElMassimo/types_f…
See it in action in the example #rails app, using @inertiajs and @vuejs 3
github.com/ElMassimo/types_f…















