https://github.com/nicholas-b-carter/js-react-codemods
A boilerplate of JS 5/6/7 transforms for react/redux/js/etc....
https://github.com/nicholas-b-carter/js-react-codemods
Last synced: 14 days ago
JSON representation
A boilerplate of JS 5/6/7 transforms for react/redux/js/etc....
- Host: GitHub
- URL: https://github.com/nicholas-b-carter/js-react-codemods
- Owner: nicholas-b-carter
- License: mit
- Created: 2017-05-26T20:16:18.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-27T04:24:19.000Z (almost 8 years ago)
- Last Synced: 2024-11-02T20:33:09.678Z (5 months ago)
- Language: JavaScript
- Size: 64.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-codemods - js-react-codemods - A boilerplate of JS 5/6/7 transforms for react/redux/js/etc. (Frameworks / React.js)
README
# JS React Codemods
Personal collection of transforms for everything from jest tests to es5-6-transforms....
## Resources
Some things that hope helpfully:
### Codeshift/transforms
* https://github.com/sejoker/awesome-jscodeshift
* https://github.com/chadbrewbaker/awesome-ast
* https://github.com/cowchimp/awesome-ast### AST Explorer
* https://astexplorer.net## Setup
To get started just run
```
yarn global add jscodeshift
yarn global add jscodemigrate
yarn install
```## Usage
Run code migrations on the example folder (warning: this will update the contents of example/src):
```
jscodemigrate
```