0.1.0 • Published 2 years ago

cra-templates v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

cra-templates

create-react-app 项目模版


模版说明

cra-template-antd-admin

基于 React + Ant Desing + Redux(redux-toolkit) + React Router(v6) 搭建的 CRA 后台管理系统项目模版

cra-template-material-admin

基于 React + Material UI + Redux(redux-toolkit) + React Router(v6) 搭建的 CRA 后台管理系统项目模版


使用方式

# 使用 npm 作为包管理器
npx create-react-app my-app --template file:../path/to/your/template/cra-template-[template-name]

# 使用 yarn 作为包管理器
yarn create react-app my-app --template file:../path/to/your/template/cra-template-[template-name]

例如以使用 cra-template-antd-admin 模版为例,在 cra-templates 根目录下执行

npx create-react-app my-app-antd-admin --template file:./cra-template-antd-admin

根目录下将生成 my-app-antd-admin 文件夹,此文件夹即为一个开箱即用的 React + Ant Desing + Redux(redux-toolkit) + React Router(v6) 后台管理系统