Add Another Application
Nx plugins usually provide generators that allow you to easily scaffold code, configuration or entire projects. To see what capabilities the @nx/angular
plugin provides, run the following command and inspect the output:
nx list @nx/angular
Run the following command to generate a new inventory
application. Note how we append --dry-run
to first check the output.
nx g @nx/angular:app apps/inventory --dry-run
NX Generating @nx/angular:application
✔ Which bundler do you want to use to build the application? · esbuild✔ Do you want to enable Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering)? (y/N) · false
As you can see, it generates a new application in the apps/inventory/
folder. Let’s actually run the generator by removing the --dry-run
flag.
nx g @nx/angular:app apps/inventory
Files
Preparing Environment
- Stubbing git
- Installing dependencies