Skip to content

doly-dev/cra-template-doly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cra-template-doly

npm GitHub

基于 Create React App + craco 扩展的脚手架,快速构建 React 单页应用。

了解更多信息,请点击查阅文档

使用

npx create-react-app my-app --template doly

# or

yarn create react-app my-app --template doly

然后,为了支持 husky lint-staged eslint prettier commitlint 首先运行:

npx husky

特性

  • 使用 TypeScript 开发,提供类型定义文件
  • 完整的目录结构,项目代码组织更规范
  • 多运行环境配置,预置 dev test prod 环境
  • 配备 mockproxy ,使前后端分离的开发和联调更有效率
  • 支持 *.less *.module.less
  • 支持页面切换动画

本地测试

Custom Templates

⚠️ 如遇到提示 You are running 'create-react-app' 4.0.3, which is behind the latest release (5.0.1).

请尝试运行 npx clear-npx-cache

npx create-react-app my-app --template file:../path/to/your/template/cra-template-[template-name]

License

MIT License