Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: npx react-codemod ./path/to/local/codemod #282

Open
threepointone opened this issue Oct 22, 2020 · 0 comments
Open

Feature request: npx react-codemod ./path/to/local/codemod #282

threepointone opened this issue Oct 22, 2020 · 0 comments

Comments

@threepointone
Copy link
Contributor

The cli experience of react-codemod is quite nice, and has made running codemods on react codebases very pleasant/accessible. Occasionally this repo will get a request to add a new type of codemod (or I'll hear about it on twitter), and the suggestion is that they use jscodeshift directly for their requirements. Which is fine, but means they have to rediscover some of the cli args that we pass to jscodeshift by default, and other niceties.

My proposal is that we allow react-codemod to accept a local path alongside the known codemods. So running npx react-codemod ./path/to/local/codemod should "just work".

Submitting this RFC because it came to mind, not sure when I'll work on it myself; others are free to try it if they'd like, and I'd be happy to review a PR.

@threepointone threepointone changed the title RFC: npx react-codemod ./path/to/local/codemod Feature request: npx react-codemod ./path/to/local/codemod Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant