https://github.com/ryanclementshax/netlify-lighthouse-example
https://github.com/ryanclementshax/netlify-lighthouse-example
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ryanclementshax/netlify-lighthouse-example
- Owner: RyanClementsHax
- License: gpl-3.0
- Created: 2021-05-31T15:22:57.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-31T15:31:06.000Z (about 5 years ago)
- Last Synced: 2025-06-16T04:22:44.783Z (12 months ago)
- Language: TypeScript
- Size: 149 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# netlify-lighthouse-example
- [netlify-lighthouse-example](#netlify-lighthouse-example)
- [Setup](#setup)
- [Developing](#developing)
- [Debugging in VSCode](#debugging-in-vscode)
- [Testing](#testing)
- [I18n](#i18n)
## Setup
1. (Recommended) Use VSCode and install the recommended extensions
2. Run `yarn install` to install all of the dependencies
## Developing
Run `yarn dev` to start a dev server
Run `yarn format` to format the code
- If you have the recommended extensions set up to format on save, then you won't need to manually run this
### Debugging in VSCode
Run the `Debug next` launch configuration to debug the next server
Run the `Debug chrome` launch configuration to debug the website in chrome ([MUST close all other chrome tabs first!!](https://stackoverflow.com/a/55505708))
- Make sure you have the `Debugger for Chrome` extension installed
Run the `Debug next and chrome` launch configuration to launch both ([MUST close all other chrome tabs first!!](https://stackoverflow.com/a/55505708))
## Testing
Run `yarn test` to run the jest tests
Run `yarn lint` to run linting
Run `yarn type-check` to run type checking
Run `yarn test-all` to run all of the above checks
## I18n
[Recommended chrome extension](https://chrome.google.com/webstore/detail/locale-switcher/kngfjpghaokedippaapkfihdlmmlafcc?hl=en-US)