Skip to content

chore: add zod2md-nx-plugin - #1162

Merged
BioPhoton merged 63 commits into
mainfrom
chore/add-zod2md-nx-plugin
Jan 19, 2026
Merged

chore: add zod2md-nx-plugin#1162
BioPhoton merged 63 commits into
mainfrom
chore/add-zod2md-nx-plugin

Conversation

@BioPhoton

@BioPhotonBioPhoton commented Dec 2, 2025

Copy link
Copy Markdown
Collaborator

Followup of #1163
Precondition of #1188

This PR includes:

  • create nx plugin under zod2md-jsdocs
  • logic to add target config if file matches zod2md.config.ts
  • plugin docs
  • remove old config
  • remove file reference from production inputs as changes in the config may impact build output

A potential followup PR could implement a nx plugin for our build target and add dependsOn settings automatically. This is also noted in a clean up issue.

Note

This is tooling code and it is not planned to get released

Related:
#1168

@github-actionsgithub-actionsBot added 📖 Project documentation improvements or additions to the project documentation 🛠️ tooling labels Dec 2, 2025
@nx-cloud

nx-cloudBot commented Dec 2, 2025

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit a03d9b6

CommandStatusDurationResult
nx affected -t e2e-test --parallel=1✅ Succeeded12m 2sView ↗

☁️ Nx Cloud last updated this comment at 2026-01-19 11:29:39 UTC

@pkg-pr-new

pkg-pr-newBot commented Dec 2, 2025

Copy link
Copy Markdown

Open in StackBlitz

@code-pushup/ci

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

@code-pushup/cli

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

@code-pushup/create-cli

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

@code-pushup/models

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

@code-pushup/core

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

@code-pushup/nx-plugin

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

@code-pushup/axe-plugin

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

@code-pushup/coverage-plugin

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

@code-pushup/eslint-plugin

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

@code-pushup/js-packages-plugin

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

@code-pushup/jsdocs-plugin

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

@code-pushup/lighthouse-plugin

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

@code-pushup/typescript-plugin

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

@code-pushup/utils

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

commit: a03d9b6

@github-actions

github-actionsBot commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

Code PushUp

🤨 Code PushUp report has both improvements and regressions – compared current commit 419a7e7 with previous commit 270b474.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Categories

🏷️ Category⭐ Previous score⭐ Current score🔄 Score change
Performance🔴 37🔴 36↓ −0.9
Code style🟢 99🟢 100↑ +0.4
Code coverage🟢 93🟢 92↓ −0.1
Bug prevention🟡 75🟡 75↓ −0.1
Axe Accessibility🟡 88🟡 88↓ −0.1
Security🟡 51🟡 51
Updates🟡 78🟡 78
Type Safety🟡 67🟡 67
Miscellaneous🟡 67🟡 67
Documentation🔴 42🔴 42
Accessibility🟢 92🟢 92
Best Practices🟢 100🟢 100
SEO🟢 92🟢 92
👍 2 groups improved, 👎 2 groups regressed, 👍 2 audits improved, 👎 6 audits regressed, 15 audits changed without impacting score

🗃️ Groups

🔌 Plugin🗃️ Group⭐ Previous score⭐ Current score🔄 Score change
ESLintStyle guide (import)🟡 80🟢 100↑ +20
LighthousePerformance🔴 37🔴 36↓ −0.9
ESLintSuggestions🟢 99🟢 100↑ +0.4
Code coverageCode coverage metrics🟢 93🟢 92↓ −0.1

30 other groups are unchanged.

🛡️ Audits

🔌 Plugin🛡️ Audit📏 Previous value📏 Current value🔄 Value change
LighthouseInitial server response time was short🟩 Root document took 540 ms🟥 Root document took 610 ms↑ +14.1 %
ESLintForbid unassigned imports🟥 1 warning🟩 passed↓ −100 %
LighthouseSpeed Index🟥 6.0 s🟥 6.5 s↑ +7.2 %
LighthouseFirst Contentful Paint🟥 3.1 s🟥 3.2 s↑ +5.3 %
LighthouseTotal Blocking Time🟥 1,890 ms🟥 1,740 ms↓ −7.8 %
Code coverageLine coverage🟩 92.7 %🟩 92.3 %↓ −0.4 %
Code coverageFunction coverage🟩 94.4 %🟩 94.3 %↓ −0.1 %
Code coverageBranch coverage🟨 89 %🟨 89 %↓ −0.1 %
LighthouseAvoids enormous network payloads🟩 Total size was 2,104 KiB🟩 Total size was 2,106 KiB↑ +0.1 %
LighthouseMinimizes main-thread work🟥 9.2 s🟥 9.8 s↑ +5.9 %
LighthouseUses efficient cache policy on static assets🟨 31 resources found🟨 31 resources found↑ +0.1 %
LighthouseJavaScript execution time🟥 4.3 s🟥 4.6 s↑ +8.8 %
LighthouseLargest Contentful Paint🟥 11.5 s🟥 11.8 s↑ +2.7 %
LighthouseMax Potential First Input Delay🟥 980 ms🟥 1,250 ms↑ +27.6 %
LighthouseReduce unused JavaScript🟥 Potential savings of 224 KiB🟥 Potential savings of 225 KiB↓ −11.7 %
LighthouseServer Backend Latencies🟩 1,200 ms🟩 1,140 ms↓ −5 %
LighthouseTime to Interactive🟥 13.0 s🟥 13.1 s↑ +0.4 %
LighthouseMetrics🟩 100%🟩 100%↑ +0.4 %
LighthouseReduce unused CSS🟥 Potential savings of 95 KiB🟥 Potential savings of 95 KiB↓ −1.6 %
LighthouseRemove duplicate modules in JavaScript bundles🟥 Potential savings of 93 KiB🟥 Potential savings of 90 KiB↓ −2.2 %
LighthouseNetwork Round Trip Times🟩 10 ms🟩 20 ms↑ +112.5 %
JS packagesOutdated npm prod dependencies.🟨 16 outdated package versions (5 major, 8 minor, 3 patch)🟨 15 outdated package versions (5 major, 8 minor, 2 patch)↓ −6.2 %
JS packagesOutdated npm dev dependencies.🟨 56 outdated package versions (29 major, 19 minor, 8 patch)🟨 55 outdated package versions (29 major, 18 minor, 8 patch)↓ −1.8 %

656 other audits are unchanged.

@github-actions

github-actionsBot commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

Code PushUp

🤨 Code PushUp report has both improvements and regressions – compared current commit 419a7e7 with previous commit 270b474.

💼 Project create-cli

🥳 Code PushUp report has improved.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category⭐ Previous score⭐ Current score🔄 Score change
Code coverage🟢 96🟢 96↑ +0.2

5 other categories are unchanged.

👍 1 group improved, 👍 1 audit improved

🗃️ Groups

🔌 Plugin🗃️ Group⭐ Previous score⭐ Current score🔄 Score change
Code coverageCode coverage metrics🟢 96🟢 96↑ +0.2

14 other groups are unchanged.

🛡️ Audits

🔌 Plugin🛡️ Audit📏 Previous value📏 Current value🔄 Value change
Code coverageBranch coverage🟨 87.5 %🟨 88.2 %↑ +0.8 %

443 other audits are unchanged.

💼 Project utils

😟 Code PushUp report has regressed.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category⭐ Previous score⭐ Current score🔄 Score change
Documentation🔴 45🔴 45↓ −0.1

5 other categories are unchanged.

👎 1 group regressed

🗃️ Groups

🔌 Plugin🗃️ Group⭐ Previous score⭐ Current score🔄 Score change
JSDocs coverageDocumentation coverage🔴 45🔴 45↓ −0.1

14 other groups are unchanged.

🛡️ Audits

All of 444 audits are unchanged.


12 other projects are unchanged.

@BioPhoton
BioPhoton marked this pull request as ready for review December 2, 2025 23:41
Comment threadtools/zod2md-nx-plugin/package.json Outdated
Comment threadtools/zod2md-nx-plugin/eslint.config.js Outdated
Comment threadtools/zod2md-nx-plugin/README.md Outdated
Comment threadtools/zod2md-nx-plugin/src/lib/plugin.js Outdated
Comment threadtools/zod2md-nx-plugin/src/lib/plugin.js Outdated
BioPhotonand others added 7 commits December 3, 2025 16:20
Co-authored-by: Matěj Chalk <34691111+matejchalk@users.noreply.github.com>
Co-authored-by: Matěj Chalk <34691111+matejchalk@users.noreply.github.com>
Comment threadtools/zod2md-jsdocs/src/nx-plugin.js Outdated
@BioPhoton

BioPhoton commented Dec 16, 2025

Copy link
Copy Markdown
CollaboratorAuthor

After switching to .ts format for the Nx plugin, the graph stopped computing because of NX invalid type: unit value, expected struct Options.
I researched and found out package updates help so I updated nx packages.

After the update errors popped up that i could not fully relate to the changes:

@matejchalk could you check this changes pls.

John Doe added 3 commits January 6, 2026 00:11
# Conflicts:
#	package-lock.json
#	package.json
# Conflicts:
#	packages/plugin-eslint/src/lib/eslint-plugin.int.test.ts
@BioPhoton

Copy link
Copy Markdown
CollaboratorAuthor

I was able to resolve the same issue in NX v22 without changed in tests. (related: #1162 (comment))

@BioPhoton
BioPhoton disabled auto-merge January 6, 2026 03:36
Comment threadtools/zod2md-jsdocs/docs/zod2md-jsdocs-nx-plugin.md Outdated
Comment threadtools/zod2md-jsdocs/src/lib/transformers.ts Outdated
Comment threadtools/zod2md-jsdocs/package.json
Comment threadpackages/models/project.json
@BioPhoton
BioPhoton merged commit ce4fadb into mainJan 19, 2026
35 of 36 checks passed
@BioPhoton
BioPhoton deleted the chore/add-zod2md-nx-plugin branch January 19, 2026 13:32
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🧹 maintenance📖 Project documentationimprovements or additions to the project documentation🔬 testingwriting tests🛠️ tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@BioPhoton@matejchalk@hanna-skryl