Skip to content

Sharing of shadcn/ui components between Vite and NextJS applications in Turborepo.

License

Notifications You must be signed in to change notification settings

evgenius1424/turborepo-vite-shadcn-ui

 
 

Repository files navigation

🚀 Turborepo starter with shared shadcn/ui components (Vite, Next.js)

Build Update Dependencies

This repository is a monorepo starter kit utilizing Turborepo for managing multiple applications with shared shadcn/ui components. It includes two applications (vite and nextjs) in the apps directory, both of which use shared components from the @repo/ui package.

This repository is based on https://github.com/dan5py/turborepo-shadcn-ui starter.

The goal of this repository is to provide up-to-date starters for vite-react and Next.js, and probably something else.

Prerequisitesvite

Make sure you have the following installed:

  • Node.js (version 18 or higher)
  • pnpm (version 9 or higher)

Installation

  1. Clone the repository:

    git clone https://github.com/evgenius1424/turborepo-vite-shadcn-ui.git
    cd turborepo-vite-shadcn-ui
  2. Install dependencies using pnpm:

    pnpm install
  3. Build

    pnpm build
  4. Develop

   pnpm dev
  1. Add new component (replace card with button, tabs, you name it)
pnpm ui:add card

Enjoy working with your new Turborepo starter kit and feel free to raise a PR! 🎉

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 59.5%
  • JavaScript 23.0%
  • CSS 14.4%
  • HTML 3.1%