@vtex/cli-plugin-lighthouse

vtex plugin lighthouse

Usage no npm install needed!

<script type="module">
  import vtexCliPluginLighthouse from 'https://cdn.skypack.dev/@vtex/cli-plugin-lighthouse';
</script>

README

cli-plugin-lighthouse

vtex plugin template

oclif npm

Usage

$ npm install -g @vtex/cli-plugin-lighthouse
$ oclif-example COMMAND
running command...
$ oclif-example (-v|--version|version)
@vtex/cli-plugin-lighthouse/0.1.1 linux-x64 node-v12.22.1
$ oclif-example --help [COMMAND]
USAGE
  $ oclif-example COMMAND
...

Commands

oclif-example lighthouse:audit URL

Runs a Lighthouse audit over the specified URL.

USAGE
  $ oclif-example lighthouse audit URL

ARGUMENTS
  URL  URL to audit.

OPTIONS
  -h, --help     show CLI help
  -j, --json     Returns the report as a json on stdout.
  -v, --verbose  Show debug level logs
  --trace        Ensure all requests to VTEX IO are traced

ALIASES
  $ oclif-example lh audit

EXAMPLES
  vtex lighthouse audit my.url.com
  vtex lh audit my.url.com

See code: build/commands/lighthouse/audit.ts

oclif-example lighthouse:show

Shows a previous audit report, filtering by app and/or URL.

USAGE
  $ oclif-example lighthouse show

OPTIONS
  -a, --app=app  Filters by the specified app.
  -h, --help     show CLI help
  -u, --url=url  Filters by the specified URL.
  -v, --verbose  Show debug level logs
  --trace        Ensure all requests to VTEX IO are traced

ALIASES
  $ oclif-example lh show

EXAMPLES
  vtex lighthouse show --app=vtex.awesome-app
  vtex lighthouse show -u https://awesome.store.com
  vtex lighthouse show -a vtex.awesome-app --url=https://awesome.store.com
  vtex lh show --app=vtex.awesome-app
  vtex lh show -u https://awesome.store.com
  vtex lh show -a vtex.awesome-app --url=https://awesome.store.com

See code: build/commands/lighthouse/show.ts