Boilerplate an Angular workspace with a buildable library and a servable application.
ng new my-workspace-name-here --createApplication=false
Create a new initial application project in the 'src' folder of the new workspace. When false, creates an empty workspace with no initial application. You can then use the generate application command so that all applications are created in the projects folder.
cd my-workspace-name-here
ng generate library my-library-name-here
ng generate application my-demo-application-name-here
"scripts": {
"build-lib": "ng build my-library-name-here",
"watch-lib": "ng build my-library-name-here --watch --configuration development",
"start-demo" : "ng serve my-demo-application-name-here --open"
...
}