@studyportals/goldeneye-lighthouse-check
TypeScript icon, indicating that this package has built-in type declarations

0.0.1-alpha.12 • Public • Published

goldeneye-lighthouse 💡

AWS CDK Library

Build states

Overview

GoldenEye Lighthouse is an AWS CDK (Cloud Development Kit) library designed to seamlessly integrate Google Lighthouse tests into web applications onboarded into GoldenEye within an AWS CodePipeline. This allows you to automate the performance auditing process as part of your CI/CD pipeline.

Features

  • Integration with AWS CodePipeline: Easily add Lighthouse tests as part of your CodePipeline.
  • Detailed Reports: Access detailed reports generated by Google Lighthouse to identify performance bottlenecks.

Getting Started

Prerequisites

  • AWS CLI installed and configured
  • Node.js and npm installed
  • AWS CDK installed (npm install -g aws-cdk)

Installation

Install the Lighthouse library using npm:

npm i @studyportals/goldeneye-lighthouse

Usage

import * as cdk from '@aws-cdk/core';
import { LighthouseTests } from '@studyportals/goldeneye-lighthouse';

const app = new cdk.App();
const stack = new cdk.Stack(app, 'LighthouseTestsStack');

new LighthouseTests(stack, 'MyLighthouseTests', {
  lhci: {
    categories: ['accessibility', 'best-practices', 'seo'],
    chromeFlags: ['--no-sandbox', '--headless'],
    extraHeaders: JSON.stringify({ 'x-foo': 'bar' }),
    runs: 1,
    urls: ['https://example.com']
  },
  persistResults: true,
  serviceDescriptor: 'my-service',
  sourceArtifact: mySourceArtifact,
  testReportsBucket: myTestReportsBucket
});

Useful commands

  • npm run build compile TypeScript to JavaScript
  • npm run watch watch for changes and compile
  • npm run test perform the jest unit tests

Readme

Keywords

none

Package Sidebar

Install

npm i @studyportals/goldeneye-lighthouse-check

Weekly Downloads

9

Version

0.0.1-alpha.12

License

none

Unpacked Size

22 kB

Total Files

16

Last publish

Collaborators

  • stathis-iakovidis-studyportals
  • muratcolyaran1
  • jordi-studyportals
  • fationsh
  • orlandoliccardo
  • ozanborafikir
  • mrmaruf-studyportal
  • alparslanylmaz
  • georgianaschipor
  • tamassoos
  • dandobrescu
  • gilalves95
  • skrothapalli1
  • armandduijnstudyportals
  • borismo
  • alexandramarginean
  • jooshuys
  • studyportals-devops
  • jens-sp
  • stormyy
  • stefanklokgieters
  • royvaneijndhovensp