mono repo angular code example

Example 1: how to create monorapo project in angular 8

npm install -g @angular/cli    # in case you don't have it installedng new CoreApp --routing=true  # creates main CoreApp with routingng generate application app1   # creates app1 applciation ng generate application app2          # creates app2 applciationng generate lib admin-lib     # creates admin-lib component library

Example 2: how to create monorapo project in angular 8

platform-directory/
  |
  ---apps/
  |  |
  |  ---app1/
  |  |
  |  ---app2/
  |
  ---library1/
  |  |
  |  ---src/
  |
  ---library2/
  |  |
  |  ---src/
  |
  ---angular.json
  |
  ---package.json
  |
  ---README.md
  |
  ---tsconfig.json