This is a sample project to demonstrate Lighthouse execution in a CommonJs codebase written in typescript.
All samples life in the packages folder.
The interesting folders are:
- sample-cts - compiles to CommonJs
- sample-mts- compiles to ESM
Navigate to one of the folders and use the npm scripts to execute the code base:
npm run exec:npx- Executes with npx (path frombinprop inpackage.jsonin thelibfolder).npm run exec:node- Executes with nodenpm run test- Execute e2e and unit test
Both commands use typescript to compile the codebase first.