Tinus
Tinus
Explore posts from servers
NNuxt
Created by Tinus on 8/29/2024 in #❓・help
Recommended way top have imports from one layer to another
We have a setup with multiple layers, base, design-system, ab-testing. What is the recommended way if you want to use a composable from the base layer in the ab-testing layer. Should the ab layer be extended by the base layer or should this be a relative or auto import?
1 replies
NNuxt
Created by Tinus on 2/20/2024 in #❓・help
Nuxt Layers in monorepo needs dependencies to be included in both the app and layer
Hi All, we're currently stuck on an issue in our project. We want to define a base for our project, this base includes a default nuxt-config with our modules etc. However once we add this base to our applications we also have to specifically add the module packages in the app package.json. For us the wanted behaviour that everything is defined once in the base, so also the dependencies. Is this a limitation with Layers? Or are we missing something? We're using pnpm workspaces with turbo to manage the monorepo.
9 replies