πŸ’ Cherry-Picked Nx v19.3 Updates

Exploring My Selected Features from Nx Releases

Jonathan Gelin
2 min readJun 14, 2024

Free Version on https://gelinjo.hashnode.dev/

[🌊 Nx Core]

Allow multiple readyWhen in nx:run-command executor

When starting a process like a server using nx:run-commands, we typically use the readyWhen option to indicate readiness by checking the console output.

However, when starting multiple dev-servers in parallel, all servers need to be considered "ready" only once they've all started, and it's unclear which will take the longest. This uncertainty can cause issues for dependent tasks, like e2e tests, which might proceed even if one server isn't fully ready.

To address this, you can now wait for multiple outputs in the readyWhen option, ensuring the command is considered ready only when all specified strings have been outputted.

"start-e2e-servers": {
"executor": "nx:run-commands",
"options": {
"commands": [
"nx run my-host:serve",
"nx run my-micro-frontend:serve",
],
"readyWhen": ["localhost:4200", "localhost:4201"],
"parallel": true
}
}

[🧩 Plugins]

rspack Plugin Improvements

[🌐 Nx Cloud]

GitHub Integration with Nx Cloud

Looking for some help? 🀝
Connect with me on Twitter β€’ LinkedIn β€’ Github

--

--

Jonathan Gelin

Write & Share about SDLC/Architecture in Ts/Js, Nx, Angular, DevOps, XP, Micro Frontends, NodeJs, Cypress/Playwright, Storybook, Tailwind β€’ Based in πŸ‡ͺπŸ‡Ί