🔗 Nuxt Layers are a powerful option to share code across applications or even encapsulate code by feature or DDD-style in projects. But how do they work and how to set them up? Learn all of thati n this video!
Key points:
🔧 How to set up layers
🧠 Understand use cases for them
👀 Building a simple layer architecture from scratch
---
Links:
🔗 Docs - https://nuxt.com/docs/guide/going-further/layers
🔗 Code - https://github.com/manniL/alexander-lichter-nuxt-layers
🔗 Layer tracker issue - https://github.com/nuxt/nuxt/issues/13367
🔗 DejaVue - https://dejavue.fm/ - @DejaVueFm
📺 My previous talk about Nuxt layers -
https://www.youtube.com/watch?v=ZsPlphW-z5k@vueschool
Don't forget to hit that "Subscribe" button, ring the notification bell and give a thumbs up!
🌐 Connect further:
Website: https://www.lichter.io
Twitter/X: https://twitter.com/TheAlexLichter
Twitch: https://www.twitch.tv/TheAlexLichter
Chapters:
00:00 Intro
00:39 The problems to solve
04:20 Setting up our demo application
05:36 Looking into the base layer
06:41 The .playground folder
07:52 Make our app extend the base layer
10:03 Overriding files from layers
11:39 Extend multiple layers
13:53 Layer Caveats
15:40 Summary