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.
ng new my-project
ng g library my-library
I just added a script to package.json to do that, could not find a better way.
"scripts": { "build-all": "ng build lib1 && ng build lib2 && ng build", "build-all-prod": "ng build lib1 --prod && ng build lib2 --prod && ng build --prod" },
and then
yarn run build-all