Alpha preview: Rails 7 w/ esbuild + Tailwind CSS

  Рет қаралды 37,355

David Heinemeier Hansson

David Heinemeier Hansson

Күн бұрын

Пікірлер: 41
@alphalion188
@alphalion188 Жыл бұрын
Just what I needed! It's 2023 and this works perfectly.
@TTV5
@TTV5 3 жыл бұрын
Javascript has been a bit confusing/scattered on Rails for a while now, even when we've tried to opt for going by the conventions as much as possible. That has really been the main pain for me with an otherwise amazing framework. Looks like you're in the process of nailing this too!
@ddevulders
@ddevulders 3 жыл бұрын
I couldn't agree more, the introduction of the asset pipeline always felt a bit clunky to begin with and the integration of packagers like yarn or webpack in more recent versions of Rails feel like they're made to fit instead of a seamless addition. I've spent quite some time back in the days figuring out all of the micro interactions which makes Rails such a good framework to work with and I like to call myself a "convention over configuration purist". So having to manually define javascript paths to serve them at runtime and restarting my server always feels so incredibly dirty. Oh and fonts, don't get me started on fonts.
@leehericks5934
@leehericks5934 3 жыл бұрын
Glorious. I've really enjoyed watching this shape up over the last month David!
@jonocodes
@jonocodes 3 жыл бұрын
I’m glad they took this idea from Phoenix
@Rekefa
@Rekefa 3 жыл бұрын
This looks amazing! I was a little worried about the hotwire default, but now this allows a lot of new opportunities for rails
@fabiannot
@fabiannot 3 жыл бұрын
Nice… I was studying tailwind on a elixir Phoenix project.. so, seeing that addon on Rails is awesome 😎
@chrisr236
@chrisr236 3 жыл бұрын
I've heard they do something interesting with Docker to develop at Basecamp. I'm eager for DHH to show us and possibly release something useful to help us :-)
@potloodgum
@potloodgum 3 жыл бұрын
Really good stuff, can't wait!
@martthth
@martthth 3 жыл бұрын
I'm looking forward for this!
@TheThiagovsk
@TheThiagovsk 3 жыл бұрын
Looks cool! Gj
@arthurkelley
@arthurkelley 3 жыл бұрын
rails 7 looks very promising, hope it will drive new life to RoR, DHH has a very good vision how should modern development look
@dam13n
@dam13n 3 жыл бұрын
Looking forward to this!
@agonights
@agonights 3 жыл бұрын
Simpler is better , love this setup
@mezzodoodle
@mezzodoodle 3 жыл бұрын
Love this setup!
@Mixesha001
@Mixesha001 3 жыл бұрын
That's awesome. I like the direction. Webpack was great but with time it was adding too much complexity.
@GG-bv4ou
@GG-bv4ou 3 жыл бұрын
Wait.. how did the "class" attribute work in jsx? Isn't it supposed to be "className" instead? So confused
@vanopiano
@vanopiano 3 жыл бұрын
What is you remove "font-extrabold" from html.erb. Will it recompile css without font-extrabold included or it also watches JSX components css usage?
@dupre7416
@dupre7416 3 жыл бұрын
I 💘 Rails! I've been coding in Rails for 10+ years and I've only ever used it as my back-end API. Well, except a few tutorials and a silly side project for scrum poker 🃏. Maybe I'll try a Rails front-end project with Rails 7.
@andrewoko-odion5492
@andrewoko-odion5492 2 жыл бұрын
This does not tell one, how to get in data into the react component
@k776
@k776 3 жыл бұрын
With these changes, would be nice to move app/javascript back to app/assets/javascript
@RyanJeffB
@RyanJeffB 3 жыл бұрын
Looking forward to this. but I hope this will not have issue to other browser! Kudos!
@aftakitani
@aftakitani 3 жыл бұрын
Awesome!!! Thanks!
@ytflix776
@ytflix776 3 жыл бұрын
What if your JSX conditionally adds a class to some div? Will Tailwind include it in the pruned set of classes?
@coldfire144
@coldfire144 3 жыл бұрын
as long as the class name is written in full and not partially interpolated or concatenations of two strings. Ex. Will be included in output: const fontweights = [ 'font-normal', 'font-bold']; . Will not be included in output: const fontWeights = ['normal', 'bold']; .
@karthikeyanak9460
@karthikeyanak9460 3 жыл бұрын
All the best.
@MiguelPeniche
@MiguelPeniche 2 жыл бұрын
How can we add another css eg. "custom.css" and compile it so we can use it in other layout?
@al-mokhtar_
@al-mokhtar_ 3 жыл бұрын
*Nice!!!!!!!!!* ruby-rails forever
@koviniskaciukas
@koviniskaciukas 3 жыл бұрын
Is the importmaps shim available somewhere or is it custom built for rails? I have trouble finding it for download.
@davidheinemeierhansson9989
@davidheinemeierhansson9989 3 жыл бұрын
github.com/guybedford/es-module-shims/
@farenrai576
@farenrai576 2 жыл бұрын
Hi David Rails7 is awsome all the hotwaire , esbuild + Tailwind css , all picess of libray can integrated . still i search not find easy ways to integrate Typescript in Rails officialy also
@ryanceasarborromeo2240
@ryanceasarborromeo2240 2 жыл бұрын
Can you make a tutorial using Vue please. Thanks
@vesh95
@vesh95 2 жыл бұрын
Гениально! Пол часа разговаривать а потом накопипастить кода и сказать "Мое изобретение!"
@w1d3r75
@w1d3r75 3 жыл бұрын
Awesome
@dorkedorke
@dorkedorke 3 жыл бұрын
wow!
@whyimustusemyrealname3801
@whyimustusemyrealname3801 3 жыл бұрын
I still like ur omakase
@anagoo1278
@anagoo1278 Жыл бұрын
no binding.pry with bin/dev... Please don't make me do more things to get default behavior working.
3 жыл бұрын
TextMate
@cutevegan3621
@cutevegan3621 3 жыл бұрын
why not use windicss instead of tailwind? tailwindcss author stole a feature and didnt even credit windicss author. Thats disheartening
@Mankepanke
@Mankepanke 3 жыл бұрын
Stole? What does that mean? License violation?
@rafasoaresms
@rafasoaresms 2 жыл бұрын
@@openHRza Tailwind UI, the UI components library is paid. Tailwind CSS, the utility CSS framework is free and open-source. That said, I'm not a fan of using it by default either - but that's personal preference.
Alpha preview: Modern JavaScript in Rails 7 without Webpack
27:06
David Heinemeier Hansson
Рет қаралды 61 М.
Create A Tailwind CSS Project w/ Rails 7, Stimulus
18:16
Deanin
Рет қаралды 11 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
Rails Concerns vs. Modules and when to use each
13:18
webcrunch
Рет қаралды 2 М.
Rails 7: The Demo
34:15
David Heinemeier Hansson
Рет қаралды 109 М.
Inertia JS on Rails Made Easy with React and Tailwind
11:57
Hotwire: The Demo
12:55
Getting Real
Рет қаралды 38 М.
How to use Dev Containers in Rails 7.2
24:07
GoRails
Рет қаралды 6 М.
Tailwind on Rails #138 Responsive Layout with Sidebar and Navbar
16:57
Coding Was HARD Until I Learned These 5 Things...
8:34
Elsa Scola
Рет қаралды 790 М.
Frontendless Rails frontend - Vladimir Dementyev
34:35
Ruby Central
Рет қаралды 11 М.