PHERUSA
React 前端项目模版
(海神女,涅柔斯和多丽丝的五十个女儿之一)
安装
npm i / yarn
启动
npm start / yarn start
启动mock
npm run mock
打包
npm run build
技术栈
react react-router redux axios less typescript eslint prettier i18n proxy nestjs
项目结构
├── commitlint.config.js 提交格式配置
├── craco.config.js webpack配置
├── README.md
├── build 编译过后的js代码
├── docker docker上线脚本
├── docs 文档说明
├── mock mock数据
├── node_modules
├── package.json 项目依赖
├── public 静态文件
├── server 服务端启动
├── src
│ ├── apis
│ ├── assets
│ ├── components
│ ├── constants
│ ├── i18n
│ ├── layouts
│ └── routes
│ └── stores
│ └── styles
│ └── utils
│ └── views
│ └── App.tsx
│ └── index.tsx
├── tsconfig.json
├── .eslintrc.js
├── .prettierrc.js
├── .gitignore
└── yarn.lock
代码规范
交互规范
checklist
docs
文档
http://doc.single-spa.com/Pherusa/README.html
temp
"@typescript-eslint/eslint-plugin": "4.7.0",
"@typescript-eslint/parser": "4.7.0",
与
"typescript": "4.0.5"
有冲突
暂定解决方式
固定版本
"@typescript-eslint/eslint-plugin": "4.6.0",
"@typescript-eslint/parser": "4.6.0",