Skip to content

feat(create-cli): add categories codegen#1267

Open
hanna-skryl wants to merge 1 commit intomainfrom
categories-codegen
Open

feat(create-cli): add categories codegen#1267
hanna-skryl wants to merge 1 commit intomainfrom
categories-codegen

Conversation

@hanna-skryl
Copy link
Collaborator

Categories support has been added to the setup wizard's code generation. Plugins can now specify categories in their PluginCodegenResult, which are collected and displayed in the generated configuration. The categories block is skipped when no plugin provides categories, so the existing behavior remains unchanged.

This update is a prerequisite for plugin bindings that need to generate categories along with their plugin configuration.

@nx-cloud
Copy link

nx-cloud bot commented Mar 12, 2026

View your CI Pipeline Execution ↗ for commit 328d961

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

☁️ Nx Cloud last updated this comment at 2026-03-12 18:52:17 UTC

@github-actions
Copy link
Contributor

Code PushUp

🤨 Code PushUp report has both improvements and regressions – compared current commit beb8738 with previous commit d13cc6e.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Categories

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

🗃️ Groups

🔌 Plugin 🗃️ Group ⭐ Previous score ⭐ Current score 🔄 Score change
JS packages npm outdated dependencies 🟡 73 🟡 72 ↓ −0.4
Lighthouse Performance 🔴 35 🔴 35 ↓ −0.1
JSDocs coverage Documentation coverage 🟡 52 🟡 52 ↓ −0.1
Code coverage Code coverage metrics 🟢 92 🟢 92 ↑ +0.1

30 other groups are unchanged.

🛡️ Audits

🔌 Plugin 🛡️ Audit 📏 Previous value 📏 Current value 🔄 Value change
Lighthouse Initial server response time was short 🟥 Root document took 740 ms 🟩 Root document took 500 ms ↓ −32.7 %
Lighthouse First Contentful Paint 🟥 3.4 s 🟥 3.1 s ↓ −7.3 %
Lighthouse Speed Index 🟥 6.4 s 🟥 6.6 s ↑ +2.7 %
JS packages Outdated npm dev dependencies. 🟨 61 outdated package versions (30 major, 25 minor, 6 patch) 🟨 61 outdated package versions (32 major, 24 minor, 5 patch)  +0 %
Lighthouse Time to Interactive 🟥 14.6 s 🟥 13.9 s ↓ −4.6 %
Lighthouse Total Blocking Time 🟥 2,090 ms 🟥 2,450 ms ↑ +17.4 %
Lighthouse Max Potential First Input Delay 🟥 660 ms 🟥 1,220 ms ↑ +86.3 %
JSDocs coverage Functions coverage 🟥 628 undocumented functions 🟥 630 undocumented functions ↑ +0.3 %
Code coverage Function coverage 🟩 94.1 % 🟩 94.1 % ↑ +0.1 %
Code coverage Line coverage 🟩 92.6 % 🟩 92.6 % ↑ +0.1 %
Lighthouse Minimizes main-thread work 🟥 9.1 s 🟥 12.0 s ↑ +32 %
Lighthouse Avoids enormous network payloads 🟩 Total size was 2,386 KiB 🟩 Total size was 2,385 KiB ↓ −0.1 %
Lighthouse Largest Contentful Paint 🟥 13.8 s 🟥 12.7 s ↓ −7.9 %
Lighthouse Server Backend Latencies 🟩 1,320 ms 🟩 240 ms ↓ −81.9 %
Lighthouse JavaScript execution time 🟥 2.9 s 🟥 3.8 s ↑ +29.1 %
Lighthouse Metrics 🟩 100% 🟩 100% ↓ −4.6 %
Lighthouse Reduce unused JavaScript 🟥 Potential savings of 322 KiB 🟥 Potential savings of 321 KiB ↓ −32.2 %
Lighthouse Remove duplicate modules in JavaScript bundles 🟥 Potential savings of 102 KiB 🟥 Potential savings of 101 KiB ↓ −76.1 %
Lighthouse Uses efficient cache policy on static assets 🟨 31 resources found 🟨 31 resources found ↑ +0.1 %
Lighthouse Network Round Trip Times 🟩 50 ms 🟩 10 ms ↓ −73.8 %
Lighthouse Reduce unused CSS 🟥 Potential savings of 111 KiB 🟥 Potential savings of 111 KiB ↓ −6 %
Lighthouse Avoids an excessive DOM size 🟥 2,341 elements 🟥 2,340 elements ↓ −0.1 %
Code coverage Branch coverage 🟨 89.1 % 🟨 89.1 % ↑ +0.1 %
Lighthouse Cumulative Layout Shift 🟩 0 🟩 0 ↓ −100 %

654 other audits are unchanged.

@github-actions
Copy link
Contributor

Code PushUp

🤨 Code PushUp report has both improvements and regressions – compared current commit beb8738 with previous commit d13cc6e.

💼 Project create-cli

🤨 Code PushUp report has both improvements and regressions.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category ⭐ Previous score ⭐ Current score 🔄 Score change
Code coverage 🟢 91 🟢 91 ↑ +0.2
Documentation 🔴 24 🔴 23 ↓ −0.1

4 other categories are unchanged.

👍 1 group improved, 👎 1 group regressed, 👍 2 audits improved, 👎 2 audits regressed

🗃️ Groups

🔌 Plugin 🗃️ Group ⭐ Previous score ⭐ Current score 🔄 Score change
Code coverage Code coverage metrics 🟢 91 🟢 91 ↑ +0.2
JSDocs coverage Documentation coverage 🔴 24 🔴 23 ↓ −0.1

13 other groups are unchanged.

🛡️ Audits

🔌 Plugin 🛡️ Audit 📏 Previous value 📏 Current value 🔄 Value change
JSDocs coverage Functions coverage 🟥 48 undocumented functions 🟥 50 undocumented functions ↑ +4.2 %
Code coverage Function coverage 🟩 90.9 % 🟩 91.2 % ↑ +0.3 %
Code coverage Line coverage 🟩 94.1 % 🟩 94.2 % ↑ +0.2 %
Code coverage Branch coverage 🟩 91 % 🟩 91 % ↓ −0.1 %

439 other audits are unchanged.


13 other projects are unchanged.

@hanna-skryl hanna-skryl marked this pull request as ready for review March 12, 2026 18:52
@hanna-skryl hanna-skryl requested a review from matejchalk March 12, 2026 18:52
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.

1 participant