This is an starter pnpm Turborepo Template with shadcn ui shared accross apps.
This Turborepo includes the following packages/apps:
web
: another Next.js appspace
: another Next.js app@zealer/ui
: a stub React component library shared by bothweb
andspace
applications@zealer/eslint-config
:eslint
configurations (includeseslint-config-next
andeslint-config-prettier
)@zealer/typescript-config
:tsconfig.json
s used throughout the monorepo
Each package/app is 100% TypeScript.
-
Turborepo workspace is build using pnpm worksapce
-
Run the following command after cloning the repo:
pnpm install
- update all the packages under root, ui, eslint-config, space and web apps,
- Run below command to udpate packages in turbo repo
pnpm update
- To add any new shadcn/ui component, run below command in root workspace, respecting components will get added to the UI package which can be shared and export the component in index.tsx
pnpm ui:add button
This Turborepo has some additional tools already setup for you:
- TypeScript for static type checking
- ESLint for code linting
- Prettier for code formatting
To build all apps and packages, run the following command:
pnpm build
To develop all apps and packages, run the following command:
pnpm dev