thekavikumar / love-simple-ui

An open-source, light-weighted, tailwindcss supported UI library for developers to make their life easier :)
https://love-simple-ui.vercel.app
MIT License
55 stars 100 forks source link

Adopt the monorepo architecture #93

Open naveeng2402 opened 12 months ago

naveeng2402 commented 12 months ago

Adopted Monorepo architecture with PNPM

Proposed Changes

updated the mono repo architecture using pnpm workspaces,

vercel[bot] commented 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
naveeng2402 commented 12 months ago

Adoption to a monorepo

Executing npm scripts

from the root directory execute

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

thekavikumar commented 12 months ago

I will deploy the changes by tmw.