-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace --init flag with npx recommendation
* Remove --init flag * Move from ava-init to @ava/init
- Loading branch information
1 parent
84a884e
commit 3311d69
Showing
5 changed files
with
28 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,18 +72,10 @@ test('arrays are equal', t => { | |
|
||
### Add AVA to your project | ||
|
||
Install AVA and run it with `--init` to add AVA to your `package.json`: | ||
To install and set up AVA, run: | ||
|
||
```console | ||
$ npm install ava@next --save-dev | ||
$ npx ava --init | ||
``` | ||
|
||
If you prefer using [Yarn](https://yarnpkg.com/en/): | ||
|
||
```console | ||
$ yarn add --dev ava@next | ||
$ yarn run ava --init | ||
$ npx @ava/init --next | ||
``` | ||
|
||
Your `package.json` will then look like this: | ||
|
@@ -100,7 +92,17 @@ Your `package.json` will then look like this: | |
} | ||
``` | ||
|
||
Running `npx` requires [`[email protected]`](https://github.com/npm/npm/releases/tag/v5.2.0) or greater. Otherwise, you'll have to manually configure the `test` script in your `package.json` to use `ava` (see above). | ||
Initialization will work with npm and Yarn, but running `npx` requires [`[email protected]`](https://github.com/npm/npm/releases/tag/v5.2.0) or greater to be installed. Otherwise, you'll have to manually install `ava` and configure the `test` script in your `package.json` as per above: | ||
|
||
```console | ||
$ npm install --save-dev ava@next | ||
``` | ||
|
||
Or if you prefer using Yarn: | ||
|
||
```console | ||
$ yarn add --dev ava@next | ||
``` | ||
|
||
### Create your test file | ||
|
||
|