![]() But has a few issues, as described at the end of the answer. Secondly, what I found is that reusable components all share a few basic principles, but other than that can vary fairly wildly in setup. ![]() How to create my own component library based on Vuetifyįirst off, the reason it's not documented at pnpm is that it's, except for a few properties, not a PNPM concern.Multiple Vue apps, shared components in a monorepo (unanswered, and doesn't specify pnpm monorepo).for completeness sake, found two related questions: How do I import it in a shared project (I recon something like "1.0.0" in the dependencies section of the package.json?).packages\y-theme-select\src\y-theme-select.vue?) Now lets say I want to add the following component (let's keep it very simple): I have created the folder "y-theme-select" in the "packages" folder, and ran pnpm init and pnpm add vue on it. Is each one an entire Vue-project by themselves? (I'm guessing yes), and then, how to specify in that project what parts to export? I'm not entirely sure how much scaffolding you're supposed to add to these shared components. This is where i'm getting stuck in the sand. And now I'd like to move some of the Vue components used there into the packages folder of the monorepo, so I can reuse them in the various apps. In the apps folder I've already created some Vue3 apps (this works fine). I know that I can run/build the various apps from the root folder by adding pnpm run dev with a filter to the scripts section, I've not yet gotten around to setting that up, but I believe it's not critical to running the monorepo.I did not create an index.js, as I have no idea what to put in there."test": "echo \"Error: no test specified\" & exit 1" I have set up a basic pnpm monorepo with an apps and packages folder by basically creating the monorepo folder, running pnpm init and tweaking the result a bit. But can't find a lot of documentation around it (which often means that it's either very simple, or I'm doing it wrong.). New to pnpm, and trying to get my head around some of the basics. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |