Closed jfmengels closed 8 years ago
Actually, do you guys mind if I create a new repo/package for this and we integrate it? I'm thinking this could be of use for quite a few projects.
@jfmengels Can you fix and merge now and do that later? This is the only thing blocking a new AVA release. Definitely a good idea though.
Sure, will do!
Tests are failing. Maybe also update the docs about running it and what AVA version migrations currently supported.
Should we recommend to install it globally? Makes it easier to run the command.
@jfmengels Yup, use https://github.com/sindresorhus/meow to handle the help stuff.
Yes. This should definitely be installed globally.
meow
He's doing everything with prompts now. So no need for meow yet
@jamestalmage I know, but meow
handles other things too, like --version
and --help
: https://github.com/sindresorhus/meow#features We should definitely have --help
.
I've updated the PR. Thanks for all the tips @jamestalmage.
Have updated the readme a bit, can be built on later.
@sindresorhus Fair point for --version
/--help
. I'm adding it now (also fixing a bug now that I've added globby).
The way things work now, all files in the project will be listed in the command when launching jscodeshift
. Will that not break a console limit?
We should warn people the following either in the readme or the CLI. Something like:
Ensure you have a backup of your tests and commit the latest changes before running this.
All comments taken into account.
Nice!
Wondrous‼️ ✨
I've added a CLI tool to help move from a version of AVA to another. It kind of looks like this:
I've created a file
codemods.json
which should list the versions that contain codemod-able changes. For now, there is only one entry for v0.14, which is the codemods needed to go from <0.14.0 to 0.14.0. Hopefully, we will later only have create the codemods and modify that file.We could later have a different question for selecting upgrade codemods (0.13 --> 0.14) or transition codemods (mocha --> ava).
Pretty sure this will not when installed globally (it needs to find
jscodeshift
in the $PATH), would welcome some tips.