Provide a way to run codemods
See original GitHub issueI feel like this could be a nice way to introduce people to the idea of codemods. Many people don’t know about https://github.com/reactjs/react-codemod or think running it is complicated. Maybe providing something like npm run upgrade-to-react-16
would be helpful. (Just throwing this idea out there.)
Issue Analytics
- State:
- Created 7 years ago
- Reactions:3
- Comments:13 (13 by maintainers)
Top Results From Across the Web
Codemods: A Quick and Easy Way to Automate Code ...
This article will show you how you can automate large-scale refactoring tasks with the use of codemods and the JSCodeshift tool, ...
Read more >Write Code to Rewrite Your Code: jscodeshift - Toptal
Codemods are scripts used to rewrite other scripts. Think of them as a find and replace functionality that can read and write code....
Read more >Working With Codemods — LibCST documentation
Initialize your repository by running the following command in the root of your repository and then edit the produced .libcst.codemod.yaml file: python3 -m ......
Read more >Getting Started with Codemods & JSCodeshift - YouTube
Codemods are awesome because they simplify repetitive programming tasks. CanJS 6's migration tool includes codemods that automate the ...
Read more >Advanced Features: Codemods | Next.js
Next.js provides Codemod transformations to help upgrade your Next.js codebase when a feature is deprecated. Codemods are transformations that run on your ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
And I grabbed the npm module
It might also be neat if there were scripts like
install-redux
,install-relay
,install-jest
. Those could do a bit of codemodding and some npm installing to automate common other ecosystem tools. Also just throwing the idea out there.