use-dpr
医患链内部react hooks抽象
目录结构
|-- scripts # prettier脚本
|-- src # 开发目录
| |-- hooks # hooks源码
|-- .gitignore # git忽略文件
|-- .prettierignore # 代码风格配置忽略文件
|-- .prettierrc # 代码风格配置文件
|-- .stylelintrc # 样式风格配置文件
|-- commitlint.config.js # 代码提交规范配置文件
|-- tsconfig.json # ts配置页面
|-- tslint.json # tslint规则
|-- package.json # 依赖及配置
|-- README.md # 简介
使用
// 安装项目git clone --depth=1 git@1921681209:m/use-dprgit cd use-dpr // 检出依赖yarn // 打包yarn build // 更多命令可在package.json中查看
提交
git add //提交做了预校验,须填写必要的信息,请参考 commitlint.config.jsgit commit "feat: xxx" git push
typescript
使用了TypeScript,TypeScript