Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikhail-hatsilau/proptypes-to-flow-codemod
Codemod to tranform react proptypes to flow
https://github.com/mikhail-hatsilau/proptypes-to-flow-codemod
codemod flow proptypes react
Last synced: 3 months ago
JSON representation
Codemod to tranform react proptypes to flow
- Host: GitHub
- URL: https://github.com/mikhail-hatsilau/proptypes-to-flow-codemod
- Owner: mikhail-hatsilau
- Created: 2017-10-17T07:33:57.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T11:58:23.000Z (about 2 years ago)
- Last Synced: 2024-08-02T07:21:19.621Z (7 months ago)
- Topics: codemod, flow, proptypes, react
- Language: JavaScript
- Homepage:
- Size: 239 KB
- Stars: 1
- Watchers: 2
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-codemods - proptypes-to-flow - Codemod to tranform react proptypes to flow. (Frameworks / React.js)
README
# PropTypes to Flow codemod
## Setup and usage
Before usage of the codemod you should install [jscodeshift](https://github.com/facebook/jscodeshift#install) first.1. Clone repo
`git clone https://github.com/mikhail-hatsilau/proptypes-to-flow-codemod.git`2. Run `npm install` inside codemod directory
3. Run `npm run build` to transpile javascript
4. Run `jscodeshift -t proptypes-to-flow-codemod/dist/propsToFlow.js `## Options
By default codemod leaves proptypes statements. But you can pass `remove-prop-types` option: `jscodeshift -t proptypes-to-flow-codemod/dist/propsToFlow.js --remove-prop-types=true`. It will remove proptypes statements and import declaration