So the question is pretty basic but I can\'t find it.
I created a new app through ng new my-project, followed by a ng g library my-library.
"build-all": "for PROJ in lib1 lib ''; do ng build $PROJ --prod || break; done"
'' provides an empty string to the loop, building the top-level project|| break stops the for loop once a library build failsOR the follow works if
angular.jsonjq always returns @ prefixed keys first in the array to loop over"build-all": "for PROJ in $(cat angular.json | jq -r '.projects | keys[]'); do ng build $PROJ --prod; done"
At some point I want to look into building up a dependency tree based on the package.json(s) found in each project and sort the projects to build based on that. Just not a high priority over up-keeping a hard-coded list from the first suggestion :)