Deploying only Micro Apps that changed
To be able to deploy only the micro apps that have been impacted by modifications to a file, we basically need to be able to do two things:
- Identify which apps have been impacted due to changes to a given set of files
- Only build and deploy the micro-apps that have been impacted
For the second point, from the previous section, we now know how to let the Firebase CLI know which micro-app we would like to be deployed. We will look at how to achieve the first point in the next subsection.
NX Affected
The NX dev tools come with a handy command called nx affected
, which is able to keep track of what files changed from the previous commit and highlight the apps that have been impacted due to the changes to these files.
This is a nifty feature that can be used for various purposes, such as speeding up the execution of tests by running unit tests or build commands only against projects that have been impacted by changes to certain...