Skip to content

Commit

Permalink
feat: update plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
hrenaud committed Nov 9, 2023
1 parent ce93aa0 commit 94f2142
Show file tree
Hide file tree
Showing 5 changed files with 151 additions and 339 deletions.
21 changes: 21 additions & 0 deletions lighthouse-plugin-ecoindex/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,27 @@ Cette génération de rapport utilise Lighthouse, Puppeteer et le plugin lightho
npm i lighthouse-plugin-ecoindex
```

## Usage

```bash
npx lighthouse-plugin-ecoindex --help
```

```bash
Options:
--version Show version number [boolean]
-d, --demo Use demo URLs. [boolean] [default: false]
-u, --urls URLs to process. Comma separated. [array]
-f, --urls-file Input file path. 1 url per line. [string]
-h, --extra-header Extra object config for Lighthouse. JSON string or path to
a JSON file. [string] [default: null]
-p, --output-path Output folder. [string] [default: "./reports"]
-o, --output Reporter for the results, supports multiple values. choice
s: "json", "html". Ex: json,html. WARN: "csv" is not avala
ilable with flow. [string] [default: ["html"]]
--help Show help [boolean]
```
## Full documentation and examples of usage on GitHub
- https://github.com/NovaGaia/lighthouse-plugin-ecoindex#readme
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-plugin-ecoindex/bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ async function captureReport() {
console.log(`Mesure(s) finished 👋`)
}

captureReport()
await captureReport()

/**
* Coerce output CLI input to `LH.SharedFlagsSettings['output']` or throw if not possible.
Expand Down
3 changes: 0 additions & 3 deletions lighthouse-plugin-ecoindex/index.js

This file was deleted.

Loading

0 comments on commit 94f2142

Please sign in to comment.