Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 19 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
# react-to-typescript-definitions

[![GitHub license](https://img.shields.io/github/license/KnisterPeter/react-to-typescript-definitions.svg)](https://github.com/KnisterPeter/react-to-typescript-definitions)
[![Travis](https://img.shields.io/travis/KnisterPeter/react-to-typescript-definitions.svg)](https://travis-ci.org/KnisterPeter/react-to-typescript-definitions)
[![Coveralls branch](https://img.shields.io/coveralls/KnisterPeter/react-to-typescript-definitions/master.svg)](https://coveralls.io/github/KnisterPeter/react-to-typescript-definitions)
[![David](https://img.shields.io/david/KnisterPeter/react-to-typescript-definitions.svg)](https://david-dm.org/KnisterPeter/react-to-typescript-definitions)
[![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)
[![npm](https://img.shields.io/npm/v/react-to-typescript-definitions.svg)](https://www.npmjs.com/package/react-to-typescript-definitions)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
[![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version)
[![GitHub license][license-image]][license-link]
[![npm][npm-image]][npm-link]
[![Travis][ci-image]][ci-link]
[![codecov][coverage-image]][coverage-link]
[![Commitizen friendly][commitizen-image]][commitizen-link]
[![Standard Version][standard-version-image]][standard-version-link]

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

Expand Down Expand Up @@ -101,3 +99,16 @@ Options:
A function which gets a type name (as string) and should return the path
to the file defining the type or undefined if the type is not resolvable.
This function is required to generate instanceOf PropTypes.

[license-image]: https://img.shields.io/github/license/KnisterPeter/react-to-typescript-definitions.svg
[license-link]: https://github.com/KnisterPeter/react-to-typescript-definitions
[npm-image]: https://img.shields.io/npm/v/react-to-typescript-definitions.svg
[npm-link]: https://www.npmjs.com/package/react-to-typescript-definitions
[ci-image]: https://img.shields.io/travis/KnisterPeter/react-to-typescript-definitions.svg
[ci-link]: https://travis-ci.org/KnisterPeter/react-to-typescript-definitions
[coverage-image]: https://codecov.io/gh/KnisterPeter/react-to-typescript-definitions/branch/master/graph/badge.svg
[coverage-link]: https://codecov.io/gh/KnisterPeter/react-to-typescript-definitions
[commitizen-image]: https://img.shields.io/badge/commitizen-friendly-brightgreen.svg
[commitizen-link]: http://commitizen.github.io/cz-cli/
[standard-version-image]: https://img.shields.io/badge/release-standard%20version-brightgreen.svg
[standard-version-link]: https://github.com/conventional-changelog/standard-version
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"build": "tsc --sourceMap",
"build:inline": "tsc --inlineSourceMap",
"pretest": "npm run clean && npm run build:inline",
"test": "nyc --all --reporter lcov ./node_modules/.bin/ava",
"coverage": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls",
"test": "nyc ava",
"coverage": "nyc report --reporter=json && codecov -f coverage/*.json",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -w",
"prerelease": "npm test && npm run build",
"release": "standard-version",
Expand All @@ -47,6 +47,7 @@
"babel-register": "6.18.0",
"chalk": "1.1.3",
"chokidar-cli": "1.2.0",
"codecov": "1.0.1",
"conventional-changelog-cli": "1.2.0",
"coveralls": "2.11.15",
"cz-conventional-changelog": "1.2.0",
Expand Down Expand Up @@ -80,10 +81,12 @@
"dist/src/**/*.js"
],
"require": [
"source-map-support"
"source-map-support/register"
]
},
"nyc": {
"all": true,
"cache": true,
"exclude": [
"node_modules",
"coverage",
Expand Down