Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 3df3fa1

Browse files
authored
chore: use codecov (#258)
* chore: use codecov * chore: update badge
1 parent 54c8703 commit 3df3fa1

File tree

2 files changed

+25
-11
lines changed

2 files changed

+25
-11
lines changed

README.md

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
# react-to-typescript-definitions
22

3-
[![GitHub license](https://img.shields.io/github/license/KnisterPeter/react-to-typescript-definitions.svg)](https://github.com/KnisterPeter/react-to-typescript-definitions)
4-
[![Travis](https://img.shields.io/travis/KnisterPeter/react-to-typescript-definitions.svg)](https://travis-ci.org/KnisterPeter/react-to-typescript-definitions)
5-
[![Coveralls branch](https://img.shields.io/coveralls/KnisterPeter/react-to-typescript-definitions/master.svg)](https://coveralls.io/github/KnisterPeter/react-to-typescript-definitions)
6-
[![David](https://img.shields.io/david/KnisterPeter/react-to-typescript-definitions.svg)](https://david-dm.org/KnisterPeter/react-to-typescript-definitions)
7-
[![David](https://img.shields.io/david/dev/KnisterPeter/react-to-typescript-definitions.svg)](https://david-dm.org/KnisterPeter/react-to-typescript-definitions#info=devDependencies&view=table)
8-
[![npm](https://img.shields.io/npm/v/react-to-typescript-definitions.svg)](https://www.npmjs.com/package/react-to-typescript-definitions)
9-
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
10-
[![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version)
3+
[![GitHub license][license-image]][license-link]
4+
[![npm][npm-image]][npm-link]
5+
[![Travis][ci-image]][ci-link]
6+
[![codecov][coverage-image]][coverage-link]
7+
[![Commitizen friendly][commitizen-image]][commitizen-link]
8+
[![Standard Version][standard-version-image]][standard-version-link]
119

1210
Create typescript definitions files (d.ts) from react components.
1311

@@ -101,3 +99,16 @@ Options:
10199
A function which gets a type name (as string) and should return the path
102100
to the file defining the type or undefined if the type is not resolvable.
103101
This function is required to generate instanceOf PropTypes.
102+
103+
[license-image]: https://img.shields.io/github/license/KnisterPeter/react-to-typescript-definitions.svg
104+
[license-link]: https://github.com/KnisterPeter/react-to-typescript-definitions
105+
[npm-image]: https://img.shields.io/npm/v/react-to-typescript-definitions.svg
106+
[npm-link]: https://www.npmjs.com/package/react-to-typescript-definitions
107+
[ci-image]: https://img.shields.io/travis/KnisterPeter/react-to-typescript-definitions.svg
108+
[ci-link]: https://travis-ci.org/KnisterPeter/react-to-typescript-definitions
109+
[coverage-image]: https://codecov.io/gh/KnisterPeter/react-to-typescript-definitions/branch/master/graph/badge.svg
110+
[coverage-link]: https://codecov.io/gh/KnisterPeter/react-to-typescript-definitions
111+
[commitizen-image]: https://img.shields.io/badge/commitizen-friendly-brightgreen.svg
112+
[commitizen-link]: http://commitizen.github.io/cz-cli/
113+
[standard-version-image]: https://img.shields.io/badge/release-standard%20version-brightgreen.svg
114+
[standard-version-link]: https://github.com/conventional-changelog/standard-version

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"build": "tsc --sourceMap",
2020
"build:inline": "tsc --inlineSourceMap",
2121
"pretest": "npm run clean && npm run build:inline",
22-
"test": "nyc --all --reporter lcov ./node_modules/.bin/ava",
23-
"coverage": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls",
22+
"test": "nyc ava",
23+
"coverage": "nyc report --reporter=json && codecov -f coverage/*.json",
2424
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -w",
2525
"prerelease": "npm test && npm run build",
2626
"release": "standard-version",
@@ -47,6 +47,7 @@
4747
"babel-register": "6.18.0",
4848
"chalk": "1.1.3",
4949
"chokidar-cli": "1.2.0",
50+
"codecov": "1.0.1",
5051
"conventional-changelog-cli": "1.2.0",
5152
"coveralls": "2.11.15",
5253
"cz-conventional-changelog": "1.2.0",
@@ -80,10 +81,12 @@
8081
"dist/src/**/*.js"
8182
],
8283
"require": [
83-
"source-map-support"
84+
"source-map-support/register"
8485
]
8586
},
8687
"nyc": {
88+
"all": true,
89+
"cache": true,
8790
"exclude": [
8891
"node_modules",
8992
"coverage",

0 commit comments

Comments
 (0)