Open naveeng2402 opened 12 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
love-simple-ui | ❌ Failed (Inspect) | May 24, 2023 5:03pm |
apps
that contain our products and packages
that contain our ui-library (standard convention)packages/react
we have the @love-simple-ui/react
library, the npm package name is to be changed. (this has many advantages as mentioned below)apps/docs
we have our docs next app which consumes out component library.pnpm run react <script-name from packages/react/package.json>
To execute scripts inside UI library such as ladle
, tsup
etc.
pnpm run docs <script-name from apps/docs/package.json>
To execute scripts inside next app such as dev
, build
etc.
Note Changing the library name to a namespaced package name is a general convention, we can namespace all our modules and if we plan to include other frameworks such as vue, svelte we can simply add those to packages and publish them at ease
I will deploy the changes by tmw.
Adopted Monorepo architecture with PNPM
Proposed Changes
updated the mono repo architecture using pnpm workspaces,