Skip to content

feat(plugin-js-packages): add setup wizard binding#1274

Open
hanna-skryl wants to merge 3 commits intomainfrom
js-packages-plugin-binding
Open

feat(plugin-js-packages): add setup wizard binding#1274
hanna-skryl wants to merge 3 commits intomainfrom
js-packages-plugin-binding

Conversation

@hanna-skryl
Copy link
Collaborator

Closes #1255

JS Packages plugin binding for the setup wizard. Auto-detects the package manager from the packageManager field in package.json or lock files, falling back to npm. Prompts for package manager, checks (audit/outdated), dependency groups (prod/dev/optional), and category generation.

Refactors:

  • Extracted answerString, answerArray, and answerBoolean into shared utilities to standardize prompt answer parsing across bindings.
  • Changed pluginInit from a single string to string[] to fix a multiline indentation bug in generated config files.

@nx-cloud
Copy link

nx-cloud bot commented Mar 20, 2026

View your CI Pipeline Execution ↗ for commit e3f1240

Command Status Duration Result
nx run ci:code-pushup -- merge-diffs --files=/h... ✅ Succeeded 6s View ↗
nx run-many --targets=code-pushup --parallel=fa... ✅ Succeeded 1m 40s View ↗
nx run-many --targets=code-pushup --parallel=fa... ✅ Succeeded 14m 38s View ↗
nx run-many -t unit-test,int-test ✅ Succeeded 9s View ↗

☁️ Nx Cloud last updated this comment at 2026-03-20 18:39:37 UTC

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 20, 2026

Open in StackBlitz

@code-pushup/ci

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/ci@1274

@code-pushup/cli

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/cli@1274

@code-pushup/core

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/core@1274

@code-pushup/create-cli

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/create-cli@1274

@code-pushup/nx-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/nx-plugin@1274

@code-pushup/models

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/models@1274

@code-pushup/axe-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/axe-plugin@1274

@code-pushup/coverage-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/coverage-plugin@1274

@code-pushup/eslint-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/eslint-plugin@1274

@code-pushup/js-packages-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/js-packages-plugin@1274

@code-pushup/jsdocs-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/jsdocs-plugin@1274

@code-pushup/lighthouse-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/lighthouse-plugin@1274

@code-pushup/typescript-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/typescript-plugin@1274

@code-pushup/utils

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/utils@1274

commit: e3f1240

@github-actions
Copy link
Contributor

Code PushUp

🤨 Code PushUp report has both improvements and regressions – compared current commit d46999d with previous commit 89b6f1c.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Categories

🏷️ Category ⭐ Previous score ⭐ Current score 🔄 Score change
Performance 🔴 35 🔴 34 ↓ −1
Code coverage 🟢 92 🟢 92 ↓ −0.1
Documentation 🟡 52 🟡 52 ↓ −0.1
Bug prevention 🟡 75 🟡 75 ↓ −0.1
Axe Accessibility 🟡 88 🟡 88 ↓ −0.1
Code style 🟢 100 🟢 100
Security 🔴 0 🔴 0
Updates 🟡 73 🟡 73
Type Safety 🟡 67 🟡 67
Miscellaneous 🟡 67 🟡 67
Accessibility 🟢 92 🟢 92
Best Practices 🟢 100 🟢 100
SEO 🟢 92 🟢 92
👎 3 groups regressed, 👍 3 audits improved, 👎 7 audits regressed, 15 audits changed without impacting score

🗃️ Groups

🔌 Plugin 🗃️ Group ⭐ Previous score ⭐ Current score 🔄 Score change
Lighthouse Performance 🔴 35 🔴 34 ↓ −1
Code coverage Code coverage metrics 🟢 92 🟢 92 ↓ −0.1
JSDocs coverage Documentation coverage 🟡 52 🟡 52 ↓ −0.1

31 other groups are unchanged.

🛡️ Audits

🔌 Plugin 🛡️ Audit 📏 Previous value 📏 Current value 🔄 Value change
Lighthouse Remove duplicate modules in JavaScript bundles 🟥 Potential savings of 111 KiB 🟨 Potential savings of 110 KiB ↓ −100 %
Lighthouse Max Potential First Input Delay 🟥 580 ms 🟥 1,370 ms ↑ +134.8 %
Lighthouse Total Blocking Time 🟥 2,270 ms 🟥 3,040 ms ↑ +34.1 %
Lighthouse First Contentful Paint 🟥 3.2 s 🟥 3.2 s ↓ −1.5 %
Lighthouse Time to Interactive 🟥 14.3 s 🟥 14.5 s ↑ +1.6 %
JSDocs coverage Variables coverage 🟥 302 undocumented variables 🟥 311 undocumented variables ↑ +3 %
Code coverage Function coverage 🟩 94 % 🟩 93.8 % ↓ −0.2 %
JSDocs coverage Types coverage 🟥 281 undocumented types 🟥 283 undocumented types ↑ +0.7 %
Code coverage Branch coverage 🟨 89.1 % 🟨 89.2 % ↑ +0.1 %
JSDocs coverage Functions coverage 🟥 646 undocumented functions 🟥 653 undocumented functions ↑ +1.1 %
Lighthouse Avoids enormous network payloads 🟩 Total size was 2,414 KiB 🟩 Total size was 2,435 KiB ↑ +0.9 %
Lighthouse Minimizes main-thread work 🟥 9.9 s 🟥 13.5 s ↑ +35.6 %
Lighthouse JavaScript execution time 🟥 3.6 s 🟥 4.5 s ↑ +24.4 %
Lighthouse Reduce unused JavaScript 🟥 Potential savings of 271 KiB 🟥 Potential savings of 270 KiB ↓ −38.4 %
Lighthouse Metrics 🟩 100% 🟩 100% ↑ +1.7 %
Lighthouse Uses efficient cache policy on static assets 🟨 31 resources found 🟨 31 resources found ↑ +0.1 %
Lighthouse Reduce unused CSS 🟥 Potential savings of 111 KiB 🟥 Potential savings of 111 KiB ↓ −21.7 %
Lighthouse Largest Contentful Paint 🟥 13.0 s 🟥 13.1 s ↑ +0.7 %
Lighthouse Network Round Trip Times 🟩 70 ms 🟩 10 ms ↓ −82.4 %
Lighthouse Server Backend Latencies 🟩 270 ms 🟩 230 ms ↓ −13.4 %
Lighthouse Initial server response time was short 🟩 Root document took 460 ms 🟩 Root document took 430 ms ↓ −6.7 %
Lighthouse Speed Index 🟥 6.5 s 🟥 6.5 s ↑ +0.2 %
Lighthouse Avoids an excessive DOM size 🟥 2,348 elements 🟥 2,347 elements ↓ −0.1 %
Code coverage Line coverage 🟩 92.2 % 🟩 92.2 % ↓ −0.1 %
Lighthouse Cumulative Layout Shift 🟩 0 🟩 0 ↓ −100 %

653 other audits are unchanged.

@github-actions
Copy link
Contributor

Code PushUp

🤨 Code PushUp report has both improvements and regressions – compared current commit d46999d with previous commit 89b6f1c.

💼 Project plugin-js-packages

🤨 Code PushUp report has both improvements and regressions.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category ⭐ Previous score ⭐ Current score 🔄 Score change
Code coverage 🟡 86 🟡 87 ↑ +1.4
Documentation 🟡 64 🟡 64 ↓ −0.1

4 other categories are unchanged.

👍 1 group improved, 👎 1 group regressed, 👍 3 audits improved, 👎 1 audit regressed, 2 audits changed without impacting score

🗃️ Groups

🔌 Plugin 🗃️ Group ⭐ Previous score ⭐ Current score 🔄 Score change
Code coverage Code coverage metrics 🟡 86 🟡 87 ↑ +1.4
JSDocs coverage Documentation coverage 🟡 64 🟡 64 ↓ −0.1

13 other groups are unchanged.

🛡️ Audits

🔌 Plugin 🛡️ Audit 📏 Previous value 📏 Current value 🔄 Value change
Code coverage Function coverage 🟨 81.5 % 🟨 83.6 % ↑ +2.6 %
Code coverage Line coverage 🟨 85.8 % 🟨 87.3 % ↑ +1.8 %
JSDocs coverage Functions coverage 🟥 45 undocumented functions 🟥 50 undocumented functions ↑ +11.1 %
Code coverage Branch coverage 🟩 95 % 🟩 95 % ↑ +0.1 %
JSDocs coverage Variables coverage 🟥 31 undocumented variables 🟥 40 undocumented variables ↑ +29 %
JSDocs coverage Types coverage 🟥 44 undocumented types 🟥 45 undocumented types ↑ +2.3 %

438 other audits are unchanged.

💼 Project plugin-eslint

🤨 Code PushUp report has both improvements and regressions.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category ⭐ Previous score ⭐ Current score 🔄 Score change
Documentation 🟡 67 🟡 66 ↓ −0.6
Code coverage 🟢 95 🟢 95 ↑ +0.1

4 other categories are unchanged.

👍 1 group improved, 👎 1 group regressed, 👍 2 audits improved, 👎 1 audit regressed, 1 audit changed without impacting score

🗃️ Groups

🔌 Plugin 🗃️ Group ⭐ Previous score ⭐ Current score 🔄 Score change
JSDocs coverage Documentation coverage 🟡 67 🟡 66 ↓ −0.6
Code coverage Code coverage metrics 🟢 95 🟢 95 ↑ +0.1

13 other groups are unchanged.

🛡️ Audits

🔌 Plugin 🛡️ Audit 📏 Previous value 📏 Current value 🔄 Value change
JSDocs coverage Functions coverage 🟥 50 undocumented functions 🟥 52 undocumented functions ↑ +4 %
Code coverage Line coverage 🟩 95.5 % 🟩 95.6 % ↑ +0.1 %
Code coverage Branch coverage 🟨 87.1 % 🟨 87.2 % ↑ +0.1 %
JSDocs coverage Types coverage 🟥 15 undocumented types 🟥 16 undocumented types ↑ +6.7 %

440 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 🟢 95 🟢 94 ↓ −0.4
Documentation 🟡 61 🟡 61 ↑ +0.1

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 🟢 95 🟢 94 ↓ −0.4
JSDocs coverage Documentation coverage 🟡 61 🟡 61 ↑ +0.1

13 other groups are unchanged.

🛡️ Audits

🔌 Plugin 🛡️ Audit 📏 Previous value 📏 Current value 🔄 Value change
JSDocs coverage Functions coverage 🟥 255 undocumented functions 🟥 255 undocumented functions  +0 %
Code coverage Function coverage 🟩 95.7 % 🟩 95.1 % ↓ −0.6 %
Code coverage Line coverage 🟩 97.7 % 🟩 97.4 % ↓ −0.3 %

441 other audits are unchanged.

💼 Project plugin-coverage

🤨 Code PushUp report has both improvements and regressions.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category ⭐ Previous score ⭐ Current score 🔄 Score change
Code coverage 🟢 93 🟢 94 ↑ +0.1
Documentation 🟡 68 🟡 68 ↑ +0.1

4 other categories are unchanged.

👍 2 groups improved, 👍 2 audits improved, 👎 1 audit regressed

🗃️ Groups

🔌 Plugin 🗃️ Group ⭐ Previous score ⭐ Current score 🔄 Score change
Code coverage Code coverage metrics 🟢 93 🟢 94 ↑ +0.1
JSDocs coverage Documentation coverage 🟡 68 🟡 68 ↑ +0.1

13 other groups are unchanged.

🛡️ Audits

🔌 Plugin 🛡️ Audit 📏 Previous value 📏 Current value 🔄 Value change
Code coverage Branch coverage 🟨 89.7 % 🟩 90.3 % ↑ +0.6 %
Code coverage Line coverage 🟩 91 % 🟩 91.3 % ↑ +0.3 %
Code coverage Function coverage 🟩 95.7 % 🟩 95.6 % ↓ −0.1 %

441 other audits are unchanged.


10 other projects are unchanged.

@hanna-skryl hanna-skryl marked this pull request as ready for review March 20, 2026 18:46
@hanna-skryl hanna-skryl requested a review from matejchalk as a code owner March 20, 2026 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JS Packages plugin setup wizard

1 participant