avajs / ava-codemods

Codemods for AVA
https://ava.li
MIT License
68 stars 16 forks source link

Add CLI to help select/run codemods #8

Closed jfmengels closed 8 years ago

jfmengels commented 8 years ago

I've added a CLI tool to help move from a version of AVA to another. It kind of looks like this:

image

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.