Skip to content

Commit

Permalink
docs(angular): why split angular.json
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacplmann authored and juristr committed Jun 23, 2023
1 parent c349a64 commit cbdb0fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/shared/guides/nx-and-angular-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ It is easy to switch from using the Angular CLI to using Nx.

## angular.json vs. project.json

Nx configures projects and their targets in a format similar to `angular.json`. However, instead of storing the configuration for every project in a single large `angular.json` file at the root, the configuration is split into multiple `project.json` files that are located in each project folder. This conversion is done for you automatically when you run `nx init`.
Nx configures projects and their targets in a format similar to `angular.json`. However, instead of storing the configuration for every project in a single large `angular.json` file at the root, the configuration is split into multiple `project.json` files that are located in each project folder. Smaller, focused config files allow you to quickly find the configuration that is relevant for the project you are working on and editing a single project configuration does not cause the `nx affected` command to re-run all the tests in the repo. This conversion is done for you automatically when you run `nx init`.

Note that even though the configuration is split, everything works the same way. Migrations and schematics written with the Angular devkit that expect a single `angular.json` file, will receive a single file. Nx is smart, so it merges all the files in memory to make those migrations and schematics work.

Expand Down

1 comment on commit cbdb0fb

@vercel
Copy link

@vercel vercel bot commented on cbdb0fb Jun 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-nrwl.vercel.app
nx-dev-git-master-nrwl.vercel.app
nx-five.vercel.app
nx.dev

Please sign in to comment.