Skip to content

Commit

Permalink
docs: simplify the installation step for recent packages managers
Browse files Browse the repository at this point in the history
  • Loading branch information
Bastien Gatellier committed Aug 5, 2023
1 parent 5acecba commit 4c1bc03
Show file tree
Hide file tree
Showing 8 changed files with 65 additions and 19 deletions.
10 changes: 8 additions & 2 deletions modules/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,16 @@ Read more about [the description and design of _Heart_](https://github.com/faber

# Usage

1. Install the package, _[Heart CLI](https://www.npmjs.com/package/@fabernovel/heart-cli)_ and an _analysis_ module, for example _[Heart GreenIT](https://www.npmjs.com/package/@fabernovel/heart-greenit)_
1. Install the package and an _analysis_ module, for example _[Heart GreenIT](https://www.npmjs.com/package/@fabernovel/heart-greenit)_

```bash
npm install @fabernovel/heart-cli @fabernovel/heart-api @fabernovel/heart-greenit
npm install @fabernovel/heart-api @fabernovel/heart-greenit
```

If you are using Yarn, npm < 7 or PNPM < 8 as package manager, you also have to install _[Heart CLI](https://www.npmjs.com/package/@fabernovel/heart-cli)_ (which is automatically installed if you have more recent versions):

```bash
npm install @fabernovel/heart-cli
```

2. Start the server
Expand Down
10 changes: 8 additions & 2 deletions modules/bigquery/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,16 @@ Read more about [the description and design of _Heart_](https://github.com/faber

## Standalone

1. Install the package, _[Heart CLI](https://www.npmjs.com/package/@fabernovel/heart-cli)_ and an _analysis_ module, for example _[Heart GreenIT](https://www.npmjs.com/package/@fabernovel/heart-greenit)_
1. Install the package and an _analysis_ module, for example _[Heart GreenIT](https://www.npmjs.com/package/@fabernovel/heart-greenit)_

```bash
npm install @fabernovel/heart-cli @fabernovel/heart-bigquery @fabernovel/heart-greenit
npm install @fabernovel/heart-bigquery @fabernovel/heart-greenit
```

If you are using Yarn, npm < 7 or PNPM < 8 as package manager, you also have to install _[Heart CLI](https://www.npmjs.com/package/@fabernovel/heart-cli)_ (which is automatically installed if you have more recent versions):

```bash
npm install @fabernovel/heart-cli
```

2. In the project root folder, create a `.env` file with the [_Google Service accounts_](https://cloud.google.com/docs/authentication/getting-started#creating_a_service_account) credentials (you can use [Code Beautify](https://codebeautify.org/remove-extra-spaces) to remove whitespaces)
Expand Down
10 changes: 8 additions & 2 deletions modules/greenit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,16 @@ Read more about [the description and design of _Heart_](https://github.com/faber

## Standalone

1. Install the package and _[Heart CLI](https://www.npmjs.com/package/@fabernovel/heart-cli)_
1. Install the package

```bash
npm install @fabernovel/heart-cli @fabernovel/heart-greenit
npm install @fabernovel/heart-greenit
```

If you are using Yarn, npm < 7 or PNPM < 8 as package manager, you also have to install _[Heart CLI](https://www.npmjs.com/package/@fabernovel/heart-cli)_ (which is automatically installed if you have more recent versions):

```bash
npm install @fabernovel/heart-cli
```

2. Start an analysis
Expand Down
14 changes: 9 additions & 5 deletions modules/lighthouse/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,19 @@ Read more about [the description and design of _Heart_](https://github.com/faber

## Standalone

1. Install _Google Chrome_, as _Google Lighthouse_ relies on it to analyze a web page
1. Install the package

2. Install the package and _[Heart CLI](https://www.npmjs.com/package/@fabernovel/heart-cli)_
```bash
npm install @fabernovel/heart-lighthouse
```

If you are using Yarn, npm < 7 or PNPM < 8 as package manager, you also have to install _[Heart CLI](https://www.npmjs.com/package/@fabernovel/heart-cli)_ (which is automatically installed if you have more recent versions):

```bash
npm install @fabernovel/heart-cli @fabernovel/heart-lighthouse
npm install @fabernovel/heart-cli
```

3. Start an analysis
2. Start an analysis

```bash
npx heart lighthouse --config '{"url":"https://heart.fabernovel.com"}'
Expand All @@ -25,7 +29,7 @@ Read more about [the description and design of _Heart_](https://github.com/faber
OR

```bash
npx heart lighthouse --file configuration.json
npx heart lighthouse --config desktop.json
```

The analysis configuration follows the JSON format and has the following keys:
Expand Down
10 changes: 8 additions & 2 deletions modules/mysql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,16 @@ Read more about [the description and design of _Heart_](https://github.com/faber

## Standalone

1. Install the package, _[Heart CLI](https://www.npmjs.com/package/@fabernovel/heart-cli)_ and an _analysis_ module, for example _[Heart GreenIT](https://www.npmjs.com/package/@fabernovel/heart-greenit)_
1. Install the package and an _analysis_ module, for example _[Heart GreenIT](https://www.npmjs.com/package/@fabernovel/heart-greenit)_

```bash
npm install @fabernovel/heart-cli @fabernovel/heart-greenit @fabernovel/heart-mysql
npm install @fabernovel/heart-greenit @fabernovel/heart-mysql
```

If you are using Yarn, npm < 7 or PNPM < 8 as package manager, you also have to install _[Heart CLI](https://www.npmjs.com/package/@fabernovel/heart-cli)_ (which is automatically installed if you have more recent versions):

```bash
npm install @fabernovel/heart-cli
```

2. In the project root folder, create a `.env` file with the database connection information set as a URL
Expand Down
10 changes: 8 additions & 2 deletions modules/observatory/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,16 @@ Read more about [the description and design of _Heart_](https://github.com/faber

## Standalone

1. Install the package and _[Heart CLI](https://www.npmjs.com/package/@fabernovel/heart-cli)_
1. Install the package

```bash
npm install @fabernovel/heart-cli @fabernovel/heart-observatory
npm install @fabernovel/heart-observatory
```

If you are using Yarn, npm < 7 or PNPM < 8 as package manager, you also have to install _[Heart CLI](https://www.npmjs.com/package/@fabernovel/heart-cli)_ (which is automatically installed if you have more recent versions):

```bash
npm install @fabernovel/heart-cli
```

2. [Optional] Customize the _Mozilla Observatory_ scanner
Expand Down
10 changes: 8 additions & 2 deletions modules/slack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,16 @@ Read more about [the description and design of _Heart_](https://github.com/faber

## Standalone

1. Install the package, _[Heart CLI](https://www.npmjs.com/package/@fabernovel/heart-cli)_ and an _analysis_ module, for example _[Heart GreenIT](https://www.npmjs.com/package/@fabernovel/heart-greenit)_
1. Install the package and an _analysis_ module, for example _[Heart GreenIT](https://www.npmjs.com/package/@fabernovel/heart-greenit)_

```bash
npm install @fabernovel/heart-cli @fabernovel/heart-greenit @fabernovel/heart-slack
npm install @fabernovel/heart-greenit @fabernovel/heart-slack
```

If you are using Yarn, npm < 7 or PNPM < 8 as package manager, you also have to install _[Heart CLI](https://www.npmjs.com/package/@fabernovel/heart-cli)_ (which is automatically installed if you have more recent versions):

```bash
npm install @fabernovel/heart-cli
```

2. In the project root folder, create a `.env` file with the Slack API token
Expand Down
10 changes: 8 additions & 2 deletions modules/ssllabs-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,16 @@ Read more about [the purpose, design and general installation of _Heart_](https:

## Standalone

1. Install the package and _[Heart CLI](https://www.npmjs.com/package/@fabernovel/heart-cli)_
1. Install the package

```bash
npm install @fabernovel/heart-cli @fabernovel/heart-ssllabs-server
npm install @fabernovel/heart-ssllabs-server
```

If you are using Yarn, npm < 7 or PNPM < 8 as package manager, you also have to install _[Heart CLI](https://www.npmjs.com/package/@fabernovel/heart-cli)_ (which is automatically installed if you have more recent versions):

```bash
npm install @fabernovel/heart-cli
```

2. Start an analysis
Expand Down

0 comments on commit 4c1bc03

Please sign in to comment.