Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@dreipol/dreihouse-cli

Package Overview
Dependencies
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dreipol/dreihouse-cli

CLI Interface for @dreipol/lighthouse-runner module

latest
Source
npmnpm
Version
2.0.11
Version published
Maintainers
3
Created
Source

dreihouse-cli

Dreihouse is a tool to run automated lighthouse audits for a webproject. Dreihouse has the advantage to be more configurable than lighthouse.

Install

npm i dreihouse-cli -g

Commands

audit <url> <dir>

This command, launches a headless chrome instance and will run a small set of audits on the given url whenever a file in the given folder changes.

setup <dir>

The setup command will setup the default configuration files in the folder specified in the command. After setup you have to edit the config to your flavours.

report <URL> [--config-file ./config/desktop.js] --reporter [REPORTER]

    dreihouse report https://example.ch -f ./config/desktop.js -r cli
    

To create a report you have to call this command followed by the config file that holds the configuration for dreihouse. Alternately you can run an audit with a default config by leaving your the config file option.

    dreihouse report https://example.ch -r cli

list of available reporters

  • cli Print lighthouse results in CLI
  • json Store the whole LH report as JSON
  • json-dashboard save just lighthouse-dashboard specific data
  • html save the LH report for further inspections

Flags

nameoptionaldefaultexampledescription
-r, --reporterfalsecli,html,json,json-dashboardAdd list of repprters to handle the data. Available
-f, --config-filetrue./config/base.js./config/lh.desktop.jsDefine the config file
-p, --porttrue9222Debugging port of a running chrome instance
-v, --verbosetruefalse-v = Error; -vv = Info; -vvvv = DebugVerbose console output
-s, --silenttruefalseSuppress spinner on CLI

#Config

See @dreipol/lighthouse-runner for detailed config

FAQs

Package last updated on 07 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts