This project was generated with Angular CLI version 8.3.8.
Sample project of an Angular 8.x monorepo project. One root folder, containing multiple applications and using shared libraries.
- This project is a "monorepo". It has a
projects
folder, containing a shared library and a "dashboard" application (it's just a name...). There is just one centralnode_modules
. - You can generate additional libraries and applications using
ng generate library <library-name>
ng generate application <application-name>
- It has a build script
npm run build-lib
to build the libary. - Remember to (re)build the libary if you changed it and want to use it in the applications.
- Use
ng serve --project=<application-name>
to run/serve a specific application.
Based on the awesome work by the team of Angular In Depth:
- https://blog.angularindepth.com/creating-a-library-in-angular-6-87799552e7e5
- https://blog.angularindepth.com/creating-a-library-in-angular-6-part-2-6e2bc1e14121
- https://blog.angularindepth.com/the-angular-library-series-publishing-ce24bb673275
Want to follow an Angular training on your own, or with colleagues from your company? See the calendar at https://kassenaar.com/calendar/ or contact met at [email protected].
Peter Kassenaar - [email protected] (C) 2019 - 2021