An open API service indexing awesome lists of open source software.

https://github.com/sj-distributor/create-react-boilerplates

🚀 Create React Boilerplate
https://github.com/sj-distributor/create-react-boilerplates

boilerplate create-react create-react-boilerplate create-react-template react react-template template typescript vite

Last synced: 7 months ago
JSON representation

🚀 Create React Boilerplate

Awesome Lists containing this project

README

          

# 🚀 Create React Boilerplates

[![npm version](https://img.shields.io/npm/v/create-react-boilerplates.svg)](https://www.npmjs.com/package/create-react-boilerplates)
[![MIT License](https://img.shields.io/npm/l/create-react-boilerplates.svg?style=flat-square)](https://github.com/sj-distributor/create-react-boilerplates/blob/main/LICENSE)
[![node](https://img.shields.io/badge/node-%5E14.18.0%20%7C%7C%20%3E%3D%2016.0.0-brightgreen)](https://github.com/nodejs/release#release-schedule)
[![CI Test](https://github.com/sj-distributor/create-react-boilerplates/actions/workflows/pull_request.yml/badge.svg)](https://github.com/sj-distributor/create-react-boilerplates/actions/workflows/pull_request.yml)

一个快速创建现代化 React 项目的脚手架工具,提供多种预配置模板,让你能够快速启动 React 项目开发。

## ✨ 特性

- 🚀 **快速创建** - 一条命令即可创建完整的 React 项目
- 📦 **多种模板** - 提供不同技术栈的项目模板
- 🔧 **开箱即用** - 预配置了 TypeScript、ESLint、Vite 等现代化工具
- 🎯 **最佳实践** - 遵循 React 社区最佳实践和代码规范
- 📱 **现代化** - 使用最新版本的 React 19 和相关依赖

## 📋 系统要求

- npm / yarn / pnpm

## 🚀 快速开始

### 使用 yarn

```bash
yarn create react-boilerplates
```

### 使用 pnpm

```bash
pnpm create react-boilerplates
```

## 📚 可用模板

### 1. TypeScript 模板 (`react-ts`)

基础的 React + TypeScript 项目模板,包含:

- ⚛️ React 19
- 🔷 TypeScript
- ⚡ Vite 构建工具
- 🔍 ESLint 代码检查
- 🎨 现代化项目结构

### 2. TypeScript + Zustand 模板 (`react-zustand`)

包含状态管理的完整项目模板,包含:

- ⚛️ React 19
- 🔷 TypeScript
- 🐻 Zustand 状态管理
- 🛠️ Ramda 函数式编程工具库
- ⚡ Vite 构建工具
- 🔍 ESLint 代码检查

## 🛠️ 使用方式

1. **创建项目**
```bash
pnpm create react-boilerplates
```

2. **选择模板**

运行命令后,会出现交互式选择界面:
- 输入项目名称
- 选择项目模板
- 确认包名称(如果需要)

3. **安装依赖并启动**
```bash
cd
pnpm install
pnpm dev
```

## 🤝 贡献

欢迎提交 Issue 和 Pull Request!

1. Fork 本仓库
2. 创建你的特性分支 (`git checkout -b feature/AmazingFeature`)
3. 提交你的更改 (`git commit -m 'Add some AmazingFeature'`)
4. 推送到分支 (`git push origin feature/AmazingFeature`)
5. 打开一个 Pull Request

## 📄 许可证

本项目基于 [MIT](LICENSE) 许可证开源。

## 🔗 相关链接

- [GitHub 仓库](https://github.com/sj-distributor/create-react-boilerplates)
- [npm 包](https://www.npmjs.com/package/create-react-boilerplates)
- [问题反馈](https://github.com/sj-distributor/create-react-boilerplates/issues)

## 📝 更新日志

查看 [Releases](https://github.com/sj-distributor/create-react-boilerplates/releases) 了解版本更新信息。