Skip to content

print lighthouse reports for all pages in web service (example : Remote Meeting)

Notifications You must be signed in to change notification settings

Seunghyum/lighthouse-report-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lighthouse-report-script

for print lighthouse report in web service. (example : Remote Meeting)

menual

just print html file

  1. install dependencies npm install or yarn

  2. set .env file in root

NODE_ENV=development
TARGET_URL=https://www.remotemeeting.com # set your target url
ID=<write your Remote Meeting ID>
PW=<write your Remote Meeting Password>
  1. just run yarn report

  2. check out ./reports folder :)

slack alert & print html file

  1. install dependencies npm install or yarn

  2. set .env file in root

NODE_ENV=development
TARGET_URL=https://www.remotemeeting.com # set your target url
ID=<write your Remote Meeting ID>
PW=<write your Remote Meeting Password>
MY_SLACK_WEBHOOK_URL=<write your Slack Webhook URL>
  1. just run yarn slack

  2. customize my code

...
 if (slackArray.length) {
    slack.alert({
      channel: "lighthouse",
      attachments: [
        {
          author_name: "Lighthouse Cat",
          author_icon:
            "https://stickershop.line-scdn.net/stickershop/v1/product/1469342/LINEStorePC/main.png;compress=true",
          thumb_url:
            "https://stickershop.line-scdn.net/stickershop/v1/product/1469342/LINEStorePC/main.png;compress=true",
          pretext: `${SlackHeadline}`,
          fallback: "Nothing to show here",
          color: "#ffdb8e",
          fields: slackArray,
          footer: `Lighthouse Tests | ${reportName}`,
          footer_icon:
            "https://platform.slack-edge.com/img/default_application_icon.png",
        },
      ],
    });
...
  1. check out ./reports folder and slack channel :)

About

print lighthouse reports for all pages in web service (example : Remote Meeting)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published