Skip to content

Latest commit

 

History

History
83 lines (62 loc) · 2.88 KB

README-zh_CN.md

File metadata and controls

83 lines (62 loc) · 2.88 KB

react-cnode

Build Status codecov codebeat badge tested with jest styled with: prettier license

使用 React.js 开发的前端 BBS 社区项目,使用 cnodejs.org API。

演示

👉 在线预览: https://cnode.f1t.io

快速开始

$ git clone
$ cd react-cnode
$ yarn # 安装依赖
$ yarn start # 开发
$ yarn build # 打包

特性

  • 移动端支持
  • 在 Redux 中使用 Immutable
  • 基于 Ant Design UI 库
  • webpack 4 开发和生产配置
  • 使用 Babel 支持 ES6 + 语法
  • 使用 Jest 进行单元测试,Enzyme 进行 UI 测试,Sinon 进行函数的模拟和监视
  • 使用 husky 和 lint-staged 在 git commit 前进行代码风格检查
  • Github Markdown CSS 风格

依赖

脚本

测试

$ yarn test # 测试
$ yarn test:update # 升级快照
$ yarn test:watch # 交互测试模式
$ yarn coverage # 生成测试覆盖率报告

更多

$ yarn prettier # 使用 Prettier 格式化 src 目录下所有 js 文件代码
$ yarn lint:style # 使用 stylelint 检查 src 目录下所有 scss 文件代码

截图

平板及以上设备

移动端

开源协议

MIT