Juri Strumpflohner

RSS

Only run tasks that changed

Author profile pic
Juri Strumpflohner
Published

As your workspace grows, re-testing, re-building, and re-linting all projects becomes too slow. To address this, Nx comes with an “affected” command. Using this command, Nx

  • determines the minimum set of projects that are affected by the change
  • only runs tasks on those affected projects

This drastically improves the speed of your CI and reduces the amount of compute needed. In this video, we’re exploring how it works.

Docs: https://nx.dev/ci/features/affected