feat(plugin-lighthouse): add setup wizard binding#1277
feat(plugin-lighthouse): add setup wizard binding#1277hanna-skryl wants to merge 1 commit intomainfrom
Conversation
|
View your CI Pipeline Execution ↗ for commit 6ef64ba
☁️ Nx Cloud last updated this comment at |
@code-pushup/ci
@code-pushup/cli
@code-pushup/core
@code-pushup/create-cli
@code-pushup/models
@code-pushup/nx-plugin
@code-pushup/axe-plugin
@code-pushup/coverage-plugin
@code-pushup/js-packages-plugin
@code-pushup/jsdocs-plugin
@code-pushup/lighthouse-plugin
@code-pushup/eslint-plugin
@code-pushup/typescript-plugin
@code-pushup/utils
commit: |
Code PushUp🤨 Code PushUp report has both improvements and regressions – compared current commit 3546faa with previous commit 28f5ad1. 🕵️ See full comparison in Code PushUp portal 🔍 🏷️ Categories👎 3 groups regressed, 👍 1 audit improved, 👎 5 audits regressed, 15 audits changed without impacting score🗃️ Groups
31 other groups are unchanged. 🛡️ Audits
657 other audits are unchanged. |
Code PushUp🤨 Code PushUp report has both improvements and regressions – compared current commit 3546faa with previous commit 28f5ad1. 💼 Project
|
| 🏷️ Category | ⭐ Previous score | ⭐ Current score | 🔄 Score change |
|---|---|---|---|
| Documentation | 🔴 24 | 🔴 23 | |
| Code coverage | 🟢 90 | 🟢 91 |
4 other categories are unchanged.
👍 1 group improved, 👎 1 group regressed, 👍 2 audits improved, 👎 3 audits regressed
🗃️ Groups
| 🔌 Plugin | 🗃️ Group | ⭐ Previous score | ⭐ Current score | 🔄 Score change |
|---|---|---|---|---|
| JSDocs coverage | Documentation coverage | 🔴 24 | 🔴 23 | |
| Code coverage | Code coverage metrics | 🟢 90 | 🟢 91 |
13 other groups are unchanged.
🛡️ Audits
| 🔌 Plugin | 🛡️ Audit | 📏 Previous value | 📏 Current value | 🔄 Value change |
|---|---|---|---|---|
| JSDocs coverage | Types coverage | 🟥 8 undocumented types | 🟥 9 undocumented types | |
| JSDocs coverage | Functions coverage | 🟥 51 undocumented functions | 🟥 56 undocumented functions | |
| Code coverage | Function coverage | 🟨 89.9 % | 🟩 90.5 % | |
| Code coverage | Branch coverage | 🟩 91.1 % | 🟩 90.5 % | |
| Code coverage | Line coverage | 🟩 91.6 % | 🟩 92.2 % |
438 other audits are unchanged.
💼 Project plugin-lighthouse
🤨 Code PushUp report has both improvements and regressions.
🕵️ See full comparison in Code PushUp portal 🔍
| 🏷️ Category | ⭐ Previous score | ⭐ Current score | 🔄 Score change |
|---|---|---|---|
| Documentation | 🔴 48 | 🔴 48 | |
| Code coverage | 🟢 99 | 🟢 99 |
4 other categories are unchanged.
👍 1 group improved, 👎 1 group regressed, 👍 2 audits improved, 👎 2 audits regressed, 1 audit changed without impacting score
🗃️ Groups
| 🔌 Plugin | 🗃️ Group | ⭐ Previous score | ⭐ Current score | 🔄 Score change |
|---|---|---|---|---|
| JSDocs coverage | Documentation coverage | 🔴 48 | 🔴 48 | |
| Code coverage | Code coverage metrics | 🟢 99 | 🟢 99 |
13 other groups are unchanged.
🛡️ Audits
| 🔌 Plugin | 🛡️ Audit | 📏 Previous value | 📏 Current value | 🔄 Value change |
|---|---|---|---|---|
| JSDocs coverage | Variables coverage | 🟥 22 undocumented variables | 🟥 29 undocumented variables | |
| JSDocs coverage | Functions coverage | 🟥 47 undocumented functions | 🟥 51 undocumented functions | |
| Code coverage | Branch coverage | 🟩 98.8 % | 🟩 98.9 % | |
| Code coverage | Line coverage | 🟩 99.8 % | 🟩 99.9 % | |
| JSDocs coverage | Types coverage | 🟥 12 undocumented types | 🟥 13 undocumented types |
439 other audits are unchanged.
💼 Project models
😟 Code PushUp report has regressed.
🕵️ See full comparison in Code PushUp portal 🔍
| 🏷️ Category | ⭐ Previous score | ⭐ Current score | 🔄 Score change |
|---|---|---|---|
| Documentation | 🟡 67 | 🟡 67 | |
| Code coverage | 🟢 94 | 🟢 94 |
2 other categories are unchanged.
👎 2 groups regressed, 👎 2 audits regressed
🗃️ Groups
| 🔌 Plugin | 🗃️ Group | ⭐ Previous score | ⭐ Current score | 🔄 Score change |
|---|---|---|---|---|
| JSDocs coverage | Documentation coverage | 🟡 67 | 🟡 67 | |
| Code coverage | Code coverage metrics | 🟢 94 | 🟢 94 |
10 other groups are unchanged.
🛡️ Audits
| 🔌 Plugin | 🛡️ Audit | 📏 Previous value | 📏 Current value | 🔄 Value change |
|---|---|---|---|---|
| JSDocs coverage | Types coverage | 🟥 64 undocumented types | 🟥 68 undocumented types | |
| Code coverage | Line coverage | 🟩 94.6 % | 🟩 94 % |
435 other audits are unchanged.
💼 Project utils
🤨 Code PushUp report has both improvements and regressions.
🕵️ See full comparison in Code PushUp portal 🔍
| 🏷️ Category | ⭐ Previous score | ⭐ Current score | 🔄 Score change |
|---|---|---|---|
| Code coverage | 🟢 94 | 🟢 94 | |
| Documentation | 🟡 61 | 🟡 61 |
4 other categories are unchanged.
👍 1 group improved, 👎 1 group regressed, 👍 1 audit improved, 👎 2 audits regressed
🗃️ Groups
| 🔌 Plugin | 🗃️ Group | ⭐ Previous score | ⭐ Current score | 🔄 Score change |
|---|---|---|---|---|
| Code coverage | Code coverage metrics | 🟢 94 | 🟢 94 | |
| JSDocs coverage | Documentation coverage | 🟡 61 | 🟡 61 |
13 other groups are unchanged.
🛡️ Audits
| 🔌 Plugin | 🛡️ Audit | 📏 Previous value | 📏 Current value | 🔄 Value change |
|---|---|---|---|---|
| JSDocs coverage | Functions coverage | 🟥 255 undocumented functions | 🟥 255 undocumented functions | |
| Code coverage | Function coverage | 🟩 95.1 % | 🟩 94.9 % | |
| Code coverage | Line coverage | 🟩 97.4 % | 🟩 97.4 % |
441 other audits are unchanged.
💼 Project plugin-coverage
🥳 Code PushUp report has improved.
🕵️ See full comparison in Code PushUp portal 🔍
| 🏷️ Category | ⭐ Previous score | ⭐ Current score | 🔄 Score change |
|---|---|---|---|
| Documentation | 🟡 68 | 🟡 68 |
5 other categories are unchanged.
👍 1 group improved
🗃️ Groups
| 🔌 Plugin | 🗃️ Group | ⭐ Previous score | ⭐ Current score | 🔄 Score change |
|---|---|---|---|---|
| JSDocs coverage | Documentation coverage | 🟡 68 | 🟡 68 |
14 other groups are unchanged.
🛡️ Audits
All of 444 audits are unchanged.
9 other projects are unchanged.
ce78358 to
6ef64ba
Compare
Closes #1257
Lighthouse plugin binding for the setup wizard. Prompts for target URL(s) and category selection, then generates plugin initialization code with
lighthouseGroupRefsexpressions for category refs.When categories are selected, the plugin is declared as a variable so it can be referenced in both the plugins array and category refs. Without categories, the plugin call is inlined.
Extends the codegen to support:
pluginDeclarationonPluginCodegenResult- emits a const declaration before the config exportCategoryCodegenConfig- allows expression-based refs alongside static refscodegen-categories.tswith support for mixed static and expression refs