Alpha preview: Rails 7 w/ esbuild + Tailwind CSS

Поделиться
HTML-код
  • Опубликовано: 30 дек 2024

Комментарии • 41

  • @TTV5
    @TTV5 3 года назад +40

    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 года назад +1

      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 года назад +4

    Glorious. I've really enjoyed watching this shape up over the last month David!

  • @alphalion188
    @alphalion188 Год назад +1

    Just what I needed! It's 2023 and this works perfectly.

  • @Rekefa
    @Rekefa 3 года назад +2

    This looks amazing! I was a little worried about the hotwire default, but now this allows a lot of new opportunities for rails

  • @jonocodes
    @jonocodes 3 года назад +4

    I’m glad they took this idea from Phoenix

  • @fabiannot
    @fabiannot 3 года назад +2

    Nice… I was studying tailwind on a elixir Phoenix project.. so, seeing that addon on Rails is awesome 😎

  • @potloodgum
    @potloodgum 3 года назад

    Really good stuff, can't wait!

  • @chrisr236
    @chrisr236 3 года назад +5

    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 :-)

  • @TheThiagovsk
    @TheThiagovsk 3 года назад +2

    Looks cool! Gj

  • @vanopiano
    @vanopiano 3 года назад +1

    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?

  • @martthth
    @martthth 3 года назад

    I'm looking forward for this!

  • @GG-bv4ou
    @GG-bv4ou 3 года назад +1

    Wait.. how did the "class" attribute work in jsx? Isn't it supposed to be "className" instead? So confused

  • @Mixesha001
    @Mixesha001 3 года назад +1

    That's awesome. I like the direction. Webpack was great but with time it was adding too much complexity.

  • @mezzodoodle
    @mezzodoodle 3 года назад +1

    Love this setup!

  • @arthurkelley
    @arthurkelley 3 года назад +1

    rails 7 looks very promising, hope it will drive new life to RoR, DHH has a very good vision how should modern development look

  • @MiguelPeniche
    @MiguelPeniche 2 года назад

    How can we add another css eg. "custom.css" and compile it so we can use it in other layout?

  • @k776
    @k776 3 года назад +1

    With these changes, would be nice to move app/javascript back to app/assets/javascript

  • @dam13n
    @dam13n 3 года назад

    Looking forward to this!

  • @ytflix776
    @ytflix776 3 года назад +1

    What if your JSX conditionally adds a class to some div? Will Tailwind include it in the pruned set of classes?

    • @coldfire144
      @coldfire144 3 года назад +1

      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']; .

  • @andrewoko-odion5492
    @andrewoko-odion5492 2 года назад +1

    This does not tell one, how to get in data into the react component

  • @dupre7416
    @dupre7416 3 года назад +1

    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.

  • @aftakitani
    @aftakitani 3 года назад +1

    Awesome!!! Thanks!

  • @RyanJeffB
    @RyanJeffB 3 года назад

    Looking forward to this. but I hope this will not have issue to other browser! Kudos!

  • @agonights
    @agonights 3 года назад

    Simpler is better , love this setup

  • @koviniskaciukas
    @koviniskaciukas 3 года назад +1

    Is the importmaps shim available somewhere or is it custom built for rails? I have trouble finding it for download.

  • @karthikeyanak9460
    @karthikeyanak9460 3 года назад

    All the best.

  • @ryanceasarborromeo2240
    @ryanceasarborromeo2240 2 года назад

    Can you make a tutorial using Vue please. Thanks

  • @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

  • @al-mokhtar_
    @al-mokhtar_ 3 года назад +1

    *Nice!!!!!!!!!* ruby-rails forever

  • @w1d3r75
    @w1d3r75 3 года назад

    Awesome

  • @vesh95
    @vesh95 2 года назад

    Гениально! Пол часа разговаривать а потом накопипастить кода и сказать "Мое изобретение!"

  • @dorkedorke
    @dorkedorke 3 года назад

    wow!

  • @anagoo1278
    @anagoo1278 Год назад

    no binding.pry with bin/dev... Please don't make me do more things to get default behavior working.

  •  3 года назад +1

    TextMate

  • @whyimustusemyrealname3801
    @whyimustusemyrealname3801 3 года назад

    I still like ur omakase

  • @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.