Skip to content

Commit

Permalink
Recommend Yarn for installation (#1130)
Browse files Browse the repository at this point in the history
  • Loading branch information
anoff authored and sindresorhus committed Nov 29, 2016
1 parent 36ba8f2 commit 63e68fa
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,17 @@ test(t => {

### Add AVA to your project

Install AVA globally and run it with `--init` to add AVA to your `package.json`:
Install AVA globally and run it with `--init` to add AVA to your `package.json`. [Yarn](https://yarnpkg.com/) currently provides significant speed improvements over npm during the installation process. Consider [using Yarn](https://yarnpkg.com/en/docs/install) if the installation is too slow for your needs.


```console
$ yarn global add ava
$ ava --init
```

If you prefer using npm:

```
$ npm install --global ava
$ ava --init
```
Expand All @@ -91,6 +99,12 @@ Any arguments passed after `--init` are added as config to `package.json`.

You can also install AVA directly:

```console
$ yarn add --dev ava
```

Alternatively using npm:

```console
$ npm install --save-dev ava
```
Expand Down

5 comments on commit 63e68fa

@PatrickHeneise
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sindresorhus this is objective and non-related to Ava, should be reverted and neutral, as tool decision should be left to the installer.

@sindresorhus
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PatrickHeneise We don't enforce anything, we're just recommending what we think is the best tool:

Yarn currently provides significant speed improvements over npm during the installation process.

@PatrickHeneise
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The difference be it speed or performance or liking is better explained elsewhere, it has nothing to do with ava. I don't see the point in this readme.

@sindresorhus
Copy link
Member

@sindresorhus sindresorhus commented on 63e68fa Apr 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PatrickHeneise AVA is heavy to install and using Yarn makes it much faster. Installing is the entry point to using AVA, and we want users to have a good experience there too. You might not see the point, but it's important for us. For reference: https://twitter.com/ava__js/status/785902327492333568 Let's end this discussion here. You're not going to convince us to change anything.

@PatrickHeneise
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, neither are you convincing me to switch to yarn, so we're even here, I guess.

Please sign in to comment.