{"id":22088666,"url":"https://github.com/hchiam/learning-lighthouse-ci","last_synced_at":"2025-07-22T14:34:08.442Z","repository":{"id":42478719,"uuid":"222737446","full_name":"hchiam/learning-lighthouse-ci","owner":"hchiam","description":"Learning Google's Lighthouse CI from scratch with a minimal template web app (quickstart)","archived":false,"fork":false,"pushed_at":"2025-07-17T22:50:45.000Z","size":415,"stargazers_count":58,"open_issues_count":4,"forks_count":18,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-07-18T09:58:19.229Z","etag":null,"topics":["ci","lighthouse","travis"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hchiam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-19T16:13:38.000Z","updated_at":"2025-02-10T01:40:56.000Z","dependencies_parsed_at":"2023-01-21T15:02:40.665Z","dependency_job_id":null,"html_url":"https://github.com/hchiam/learning-lighthouse-ci","commit_stats":null,"previous_names":[],"tags_count":2,"template":true,"template_full_name":null,"purl":"pkg:github/hchiam/learning-lighthouse-ci","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hchiam%2Flearning-lighthouse-ci","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hchiam%2Flearning-lighthouse-ci/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hchiam%2Flearning-lighthouse-ci/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hchiam%2Flearning-lighthouse-ci/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hchiam","download_url":"https://codeload.github.com/hchiam/learning-lighthouse-ci/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hchiam%2Flearning-lighthouse-ci/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266510687,"owners_count":23940696,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ci","lighthouse","travis"],"created_at":"2024-12-01T02:09:14.876Z","updated_at":"2025-07-22T14:34:08.409Z","avatar_url":"https://github.com/hchiam.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Learning Lighthouse CI from scratch (quickstart)\n\n[![version](https://img.shields.io/github/release/hchiam/learning-lighthouse-ci?style=flat-square)](https://github.com/hchiam/learning-lighthouse-ci/releases)\n\nJust one of the things I'm learning. \u003chttps://github.com/hchiam/learning\u003e\n\nHave [Lighthouse CI](https://github.com/GoogleChrome/lighthouse-ci) tool run with Travis for every commit or PR to a web app project hosted on GitHub.\n\n## Results upon commit\n\n[![Build Status](https://img.shields.io/travis/hchiam/learning-lighthouse-ci/master?style=flat-square)](https://travis-ci.org/hchiam/learning-lighthouse-ci/builds)\n\n**Automated test run info here:** \u003chttps://travis-ci.org/hchiam/learning-lighthouse-ci/builds\u003e (or click on the badge above). **Update:** Since June 15th, 2021, building on travis-ci.org \"ceased\", so you should use travis-ci.com from now on. Some of the old .org links have stopped working, so here's the .com builds page: \u003chttps://app.travis-ci.com/github/hchiam/learning-lighthouse-ci/builds\u003e Also, you may want to use free GitHub Actions instead.\n\n**Example PR here (click \"View details\"):** \u003chttps://github.com/hchiam/learning-lighthouse-ci/pull/1#issuecomment-555602268\u003e\n\n## Setup steps (if you `git clone` this repo)\n\n1. To test the web app locally:\n\n    ```bash\n    npm install\n    npm start\n    ```\n\n    and in a separate CLI tab:\n\n    ```bash\n    npm run build\n    npm install -g @lhci/cli@0.3.x\n    lhci autorun\n    ```\n\n1. To test the web app upon commit/PR:\n\n    * You might want to edit [.travis.yml](https://github.com/hchiam/learning-lighthouse-ci/blob/master/.travis.yml)\n    * You might want to edit [lighthouserc.json](https://github.com/hchiam/learning-lighthouse-ci/blob/master/lighthouserc.json)\n    * ***Then*** make your commit.\n\n## Setup steps (if you're starting from an empty folder)\n\n1. For `lhci autorun` to work, you need a web app set up that has things like a dist or public folder, etc. To do that, you can run a one-liner command to set up a React app:\n\n    ```bash\n    # cd to desktop or containing folder\n    create-react-app my-app\n    ```\n\n1. To make sure it's working locally:\n\n    ```bash\n    cd my-app\n    npm start\n    ```\n\n    and in another CLI tab:\n\n    ```bash\n    cd my-app\n    npm install -g @lhci/cli@0.3.x\n    lhci autorun\n    ```\n\n1. The key is [setting up](https://github.com/GoogleChrome/lighthouse-ci#quick-start) the Travis file `.travis.yml`:\n\n    ```yml\n    language: node_js\n    node_js:\n      - 10\n    before_install:\n      - npm install -g @lhci/cli@0.3.x\n    script:\n      - npm run build\n      - lhci autorun\n    addons:\n      chrome: stable\n    ```\n\n## Aside\n\nIf you want to see a report with more details (e.g. vulnerable libraries -\u003e which *specific* ones), use a different CLI tool: run [`lighthouse`](https://github.com/GoogleChrome/lighthouse) locally:\n\n```bash\nnpm install -g lighthouse\nlighthouse https://airhorner.com/\n# lighthouse \u003curl\u003e\n```\n\nThen open the generated html file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhchiam%2Flearning-lighthouse-ci","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhchiam%2Flearning-lighthouse-ci","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhchiam%2Flearning-lighthouse-ci/lists"}