Skip to content
项目

关于

使用 shadcn 组件构建的开源组件集合,可扩展你的 UI 库

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
+1
1个月
+2

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Shadcn Extension Turborepo

This is the official starter for the Shadcn Extension Turborepo, a monorepo setup for developing and sharing reusable UI components.

What is Turborepo?

Turborepo is a high-performance build system for JavaScript and TypeScript codebases. It is designed for scaling monorepos and also makes workflows in single-package workspaces faster, too. Turborepo optimizes build and development processes by caching, parallel execution, and dependency graph analysis.

About This Repository

This repository is a monorepo, which means it contains multiple projects managed in a single codebase. This approach simplifies dependency management and sharing code between projects.

Tools and Technologies Used:

  • pnpm: A fast, disk space-efficient package manager.
  • Turborepo: A build system for monorepos.
  • TypeScript: A statically typed superset of JavaScript.
  • Next.js: A React framework for production.

Structure

The repository is structured as follows:

shadcn-extension-turborepo/
├── apps/
│   └── extension/
│       ├── content/
│       │   └── docs/
│       ├── public/
│       │   ├── registry/
│       │   ├── next.svg
│       │   ├── og.png
│       │   └── vercel.svg
│       ├── src/
│       │   ├── __registry__/
│       │   ├── app/
│       │   ├── components/
│       │   ├── config/
│       │   ├── hooks/
│       │   ├── lib/
│       │   ├── registry/
│       │   ├── script/
│       │   ├── types/
│       │   └── env.ts
├── packages/
│   ├── CLI/
│   │   ├── src/
│   │   ├── __tests__/
│   │   ├── commands/
│   │   ├── utils/
│   │   └── index.ts
│   ├── eslint-config/
│   │   ├── library.js
│   │   ├── next.js
│   │   ├── package.json
│   │   ├── react-internal.js
│   │   └── README.md
│   └── typescript-config/
│       ├── base.json
│       ├── nextjs.json
│       ├── package.json
│       └── react-library.json
└── pnpm-workspace.yaml

Getting Started

Cloning the Repository

First, clone the monorepo to your local machine:

git clone https://github.com/BelkacemYerfa/shadcn-extension.git
cd shadcn-extension

Installation

Install all dependencies using pnpm:

pnpm install

Building the Project

To build all apps and packages, run the following command:

pnpm build

This will compile the TypeScript code and prepare the project for development and production.

Development

To start the development server for all apps and packages, run:

pnpm dev

This command will run the development servers and watch for changes, enabling live reload for a smoother development experience.

CLI

The @shadx/cli package is a command-line interface (CLI) for adding components to your project. It helps automate repetitive tasks, such as creating new components or setting up configurations.

You can find detailed instructions for using the CLI in the CLI README.

Additional Resources

Contributing

Contributions are welcome! Please open an issue or submit a pull request with your changes. Make sure to follow the project's code of conduct and guidelines for contributing.

License

This project is licensed under the MIT License. See the LICENSE file for details.

探索相关项目

加载中…