I would like to start using codemods over my IDE's search and replace more. I think this basic scaffolding gets me there.
Some general goals / thoughts:
No local dependencies required. The global install of jscodeshift is passed in, so there is no need for them to install anything locally (generator completes very fast).
API examples baked in. I don't use jscodeshift enough yet to remember how registerMethods works. See #1. It's adds a bit of verbosity, but provides a useful example for a substantial part of the UI.
I would like to start using codemods over my IDE's search and replace more. I think this basic scaffolding gets me there.
Some general goals / thoughts:
jscodeshift
is passed in, so there is no need for them to install anything locally (generator completes very fast).jscodeshift
enough yet to remember howregisterMethods
works. See #1. It's adds a bit of verbosity, but provides a useful example for a substantial part of the UI.// @sindresorhus @jfmengels