项目
在 GitHub 查看
dan5py/react-vite-shadcn-ui
关于
React + Vite template powered by shadcn/ui
网站与应用开发可以做什么
- React - A JavaScript library for building user interfaces.
- Vite - A fast, opinionated frontend build tool.
- TypeScript - A typed superset of JavaScript that compiles to plain JavaScript.
- Tailwind CSS - A utility-first CSS framework (v4).
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文React + Vite + TypeScript Template (react-vite-ui)
A React + Vite template powered by shadcn/ui.
🎉 Features
- React - A JavaScript library for building user interfaces.
- Vite - A fast, opinionated frontend build tool.
- TypeScript - A typed superset of JavaScript that compiles to plain JavaScript.
- Tailwind CSS - A utility-first CSS framework (
v4). - React Compiler - Automatic memoization for React components.
- Oxlint - A fast linter for JavaScript and TypeScript.
- Oxfmt - A fast, Prettier-compatible code formatter.
- shadcn/ui - Beautifully designed components that you can copy and paste into your apps.
⚙️ Prerequisites
Make sure you have the following installed on your development machine:
- Node.js (version 24 or above)
- pnpm (package manager)
🚀 Getting Started
Follow these steps to get started with the react-vite-ui template:
Clone the repository:
git clone https://github.com/dan5py/react-vite-shadcn-ui.gitNavigate to the project directory:
cd react-vite-shadcn-uiInstall the dependencies:
pnpm installStart the development server:
pnpm dev
📜 Available Scripts
- pnpm dev - Starts the development server.
- pnpm build - Builds the production-ready code.
- pnpm lint - Runs Oxlint to analyze and lint the code.
- pnpm format - Formats the code with Oxfmt.
- pnpm preview - Serves the production build locally.
📂 Project Structure
The project structure follows a standard React application layout:
react-vite-shadcn-ui/
├── node_modules/ # Project dependencies
├── public/ # Public assets
├── src/ # Application source code
│ ├── assets/ # Static assets
│ ├── components/ # React components
│ │ └── ui/ # shadcn/ui components
│ ├── styles/ # CSS stylesheets
│ ├── lib/ # Utility functions
│ ├── App.tsx # Root component
│ └── main.tsx # Application entry point
├── .oxfmtrc.json # Oxfmt configuration
├── .oxlintrc.json # Oxlint configuration
├── components.json # shadcn/ui configuration
├── index.html # HTML entry point
├── tsconfig.json # TypeScript configuration
└── vite.config.ts # Vite configuration
📄 License
This project is licensed under the MIT License. See the LICENSE file for details.
探索相关项目
加载中…