You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there are two ways that I can find in the docs to setup target dependencies. One is in the nx.json which means all applications and libraries that build will build their dependencies. The other is to add dependsOn to every project.json file.
What I need is a way to say that every library in the workspace must build dependencies and every application doesn't require it. If I put dependsOn in the project.json that means for every new library I must add that configuration setting. I'd like to set it globally but could not find any docs on being able to do so. Anyone have any better suggestions?
The reason I need this is our CI process currently has two different builds, one for building the feature branch, and another for the package build. In the case of the feature branch I want all libs and their deps built. In the case of the package build I only want the application built to produce my artifact for deployment. Our builds are upwards of 30 minutes currently (with deps) and only 70 seconds with a single application build.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Currently there are two ways that I can find in the docs to setup target dependencies. One is in the nx.json which means all applications and libraries that build will build their dependencies. The other is to add dependsOn to every project.json file.
What I need is a way to say that every library in the workspace must build dependencies and every application doesn't require it. If I put dependsOn in the project.json that means for every new library I must add that configuration setting. I'd like to set it globally but could not find any docs on being able to do so. Anyone have any better suggestions?
The reason I need this is our CI process currently has two different builds, one for building the feature branch, and another for the package build. In the case of the feature branch I want all libs and their deps built. In the case of the package build I only want the application built to produce my artifact for deployment. Our builds are upwards of 30 minutes currently (with deps) and only 70 seconds with a single application build.
Beta Was this translation helpful? Give feedback.
All reactions