cli
cli copied to clipboard
feat: make portal-client dependency optional
Closes #474
- Make
@code-pushup/portal-clientan optional dependency in the@code-pushup/corepackage. - Update the core package to use dynamic imports for
@code-pushup/portal-client. - Add a utility function to handle the loading of the portal client.
- Update the installation instructions to guide users on omitting optional dependencies, including details for
npm,pnpm, andyarnsetups.
Code PushUp
๐คจ Code PushUp report has both improvements and regressions โ compared target commit 01f02b65055666dc59e90d03dcaabe9ab16044ea with source commit c420a682302c5eec6e24237af6965c60795ff912.
๐ต๏ธ See full comparison in Code PushUp portal ๐
๐ท๏ธ Categories
| ๐ท๏ธ Category | โญ Previous score | โญ Current score | ๐ Score change |
|---|---|---|---|
| Performance | ๐ก 52 | ๐ด 43 | |
| Code coverage | ๐ข 90 | ๐ข 90 | |
| Custom checks | ๐ก 67 | ๐ก 67 | โ |
| Security | ๐ก 82 | ๐ก 82 | โ |
| Updates | ๐ก 77 | ๐ก 77 | โ |
| Accessibility | ๐ข 91 | ๐ข 91 | โ |
| Best Practices | ๐ข 100 | ๐ข 100 | โ |
| SEO | ๐ก 61 | ๐ก 61 | โ |
| Bug prevention | ๐ข 100 | ๐ข 100 | โ |
| Code style | ๐ข 99 | ๐ข 99 | โ |
๐ 2 groups regressed, ๐ 2 audits improved, ๐ 6 audits regressed, 11 audits changed without impacting score
๐๏ธ Groups
| ๐ Plugin | ๐๏ธ Group | โญ Previous score | โญ Current score | ๐ Score change |
|---|---|---|---|---|
| Lighthouse | Performance | ๐ก 52 | ๐ด 43 | |
| Code coverage | Code coverage metrics | ๐ข 90 | ๐ข 90 |
18 other groups are unchanged.
๐ก๏ธ Audits
| ๐ Plugin | ๐ก๏ธ Audit | ๐ Previous value | ๐ Current value | ๐ Value change |
|---|---|---|---|---|
| Lighthouse | Largest Contentful Paint | ๐จ 3.2ย s | ๐ฅ 4.2ย s | |
| Lighthouse | First Contentful Paint | ๐ฅ 3.2ย s | ๐ฅ 3.6ย s | |
| Lighthouse | First Meaningful Paint | ๐จ 3.2ย s | ๐จ 3.6ย s | |
| Lighthouse | Speed Index | ๐ฅ 6.4ย s | ๐ฅ 6.6ย s | |
| Lighthouse | Time to Interactive | ๐ฅ 19.6ย s | ๐ฅ 17.8ย s | |
| Code coverage | Branch coverage | ๐จ 85.4 % | ๐จ 85.3 % | |
| Code coverage | Line coverage | ๐ฉ 91.5 % | ๐ฉ 91.5 % | |
| Code coverage | Function coverage | ๐ฉ 92.4 % | ๐ฉ 92.4 % | |
| Lighthouse | Avoids enormous network payloads | ๐ฉ Total size was 1,823ย KiB | ๐ฉ Total size was 1,818ย KiB | |
| Lighthouse | Minimizes main-thread work | ๐ฅ 24.3ย s | ๐ฅ 22.4ย s | |
| Lighthouse | Total Blocking Time | ๐ฅ 9,650ย ms | ๐ฅ 7,920ย ms | |
| Lighthouse | Metrics | ๐ฉ 100% | ๐ฉ 100% | |
| Lighthouse | Max Potential First Input Delay | ๐ฅ 4,900ย ms | ๐ฅ 3,220ย ms | |
| Lighthouse | JavaScript execution time | ๐ฅ 11.8ย s | ๐ฅ 11.0ย s | |
| Lighthouse | Eliminate render-blocking resources | ๐ฅ Potential savings of 1,270ย ms | ๐ฅ Potential savings of 1,490ย ms | |
| Lighthouse | Uses efficient cache policy on static assets | ๐จ 27 resources found | ๐จ 27 resources found | |
| Lighthouse | Server Backend Latencies | ๐ฉ 150ย ms | ๐ฉ 220ย ms | |
| Lighthouse | Network Round Trip Times | ๐ฉ 20ย ms | ๐ฉ 60ย ms | |
| Lighthouse | Initial server response time was short | ๐ฉ Root document took 410ย ms | ๐ฉ Root document took 380ย ms |
494 other audits are unchanged.