omarlopesino / ddev-lighthouse

Lighthouse ddev addon based on patrickhulce/lhci-client image

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tests project is maintained

What is DDEV Lighthouse Add-on?

This is a DDEV addon for running performance tests using Lighthouse, an open-source automated tool for improving web page quality. It utilizes the tests/functional/lighthouserc.js configuration file for test setup and saves reports in the reports/lighthouse folder of your project.

This is optimized for Aljibe projects, but can be used in any DDEV project.

Lighthouse analyzes performance, accessibility, best practices, and more of your web pages, generating detailed reports to help you enhance your site's quality and performance.

Getting Started

Install this addon by running the following command:

ddev get Metadrop/ddev-lighthouse

Once installed, make sure to restart your ddev project:

ddev restart

Configuration

This addon uses the tests/functional/lighthouserc.js configuration file to customize tests according to your needs. You can modify this file following Lighthouse configuration guidelines.

Running Tests

To execute Lighthouse tests, simply access your ddev environment and run the following command:

ddev lighthouse

Lighthouse will generate detailed reports and save them in the reports/lighthouse folder of your project.

Interpreting Results

Once Lighthouse reports are generated, you can review them to identify areas for improvement in performance, accessibility, and more of your website.

Happy optimization!

Contributed and maintained by @Metadrop

About

Lighthouse ddev addon based on patrickhulce/lhci-client image

License:Apache License 2.0


Languages

Language:Shell 51.8%Language:Dockerfile 48.2%