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:

Terminal window
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.

Terminal window
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.

Terminal window
nx g @nx/angular:app apps/inventory
Powered by WebContainers
Files
Preparing Environment
  • Stubbing git
  • Installing dependencies