Nx

helper

  • npx nx list @nx/angular

useful properties and tips

  • --dry-run
  • --skip-tests
  • @nx/angular:xxx is optional, we can directly use xxx, and then choose.

generate monorepo project

  • npx create-nx-workspace@latest monorepo-name --preset=angular-monorepo

generate app

  • npx nx g app apps/app-name

generate component/directive/pipe/service

  • npx nx g c|d|p|s full-path --skip-tests

generate library

  • npx nx g lib libs/lib-name

NX Angular MFS

npx create-nx-workspace@latest ng-mf --preset=apps

cd ng-mf
npx nx add @nx/angular

npx nx g @nx/angular:host apps/dashboard --prefix=ng-mf

npx nx g @nx/angular:remote apps/login --prefix=ng-mf --host=dashboard