Skip to content

Commit

Permalink
clarify readme example on adding AVA to package.json
Browse files Browse the repository at this point in the history
fixes #922
  • Loading branch information
sindresorhus committed Jun 17, 2016
1 parent dc30b00 commit 6fd817c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,26 +59,28 @@ test(t => {

### Add AVA to your project

Install AVA globally run with `--init` to add AVA to your `package.json`:
Install AVA globally and run it with `--init` to add AVA to your `package.json`:

```console
$ npm install --global ava
$ ava --init
```

Your `package.json` will then look like this:

```json
{
"name": "awesome-package",
"scripts": {
"test": "ava"
},
"devDependencies": {
"ava": "^0.11.0"
"ava": "^0.15.0"
}
}
```

Any arguments passed after `--init` are added in the `package.json`.
Any arguments passed after `--init` are added as config to `package.json`.

#### Manual installation

Expand Down

0 comments on commit 6fd817c

Please sign in to comment.