Skip to content

Commit 5488265

Browse files
author
Sylvenas
committed
feat: 添加徽章
1 parent b51be2e commit 5488265

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

.travis.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,16 @@ language: node_js
33
node_js:
44
- "8"
55
- "10"
6-
- "12"
6+
- "12"
7+
8+
cache: npm
9+
10+
install:
11+
- npm install
12+
13+
before_script:
14+
- npm run build
15+
16+
script:
17+
- npm test
18+
- npm run report-coverage

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
[![npm](https://img.shields.io/npm/v/catch-react-error?style=flat-square)](https://www.npmjs.com/package/catch-react-error)
44

5+
[![Build Status](https://travis-ci.org/x-orpheus/catch-react-error.svg?branch=master)](https://travis-ci.org/x-orpheus/catch-react-error)
6+
7+
[![codecov](https://codecov.io/gh/x-orpheus/catch-react-error/branch/master/graph/badge.svg)](https://codecov.io/gh/x-orpheus/catch-react-error)
8+
59
## 简介
610
对于 React 生命周期中发生的错误,只需要使用 ErrorBoundary 组件包裹可能出现异常的组件即可。
711

doc/todo.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
### TODO
2+
3+
- build/test status in Readme.md
4+
- example 的动态图对比
5+
- 文档的英文翻译
6+
- jest 覆盖率
7+
- 安全警告

0 commit comments

Comments
 (0)