Skip to content
This repository was archived by the owner on Jan 11, 2019. It is now read-only.

Commit 2c9da0e

Browse files
committed
Add documentation
1 parent 0fff6da commit 2c9da0e

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

readme.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
55
Codemods to simplify upgrading [AVA](https://ava.li) versions.
66

7+
Codemods are small programs that help you automate changes to your codebase. Think of them as search and replace on steroids.
8+
9+
This module contains a set of codemods that enable you to upgrade your code between various AVA releases. It is maintained by the AVA team, and will be updated anytime we introduce breaking API changes. We plan to eventually introduce codemods that allow you to switch from other popular Runners like `mocha` and `tap`.
710

811
## Install
912

@@ -14,7 +17,22 @@ $ npm install --global ava-codemods
1417

1518
## Usage
1619

17-
Simply run `ava-codemods` in your terminal and answer a few questions.
20+
```
21+
$ ava-codemods --help
22+
23+
Codemods to simplify upgrading AVA versions
24+
25+
Usage
26+
$ ava-codemods [<file|glob> ...]
27+
28+
Options
29+
--force, -f Bypass safety checks and forcibly run codemods
30+
31+
Available upgrades
32+
- 0.13.x → 0.14.x
33+
```
34+
35+
Simply run `ava-codemods` in your terminal and answer a few questions. You can pass a filename directly to the CLI. If you do not, you will be prompted for one.
1836

1937
Ensure you have a backup of your tests or commit the latest changes before running this.
2038

0 commit comments

Comments
 (0)