Repository navigation
Split angular.json into multiple files聽#22655
Description
Activity
- changed the title
[-]Is there going to be Angular Json V2?[/-][+]Split angular.json into multiple files[/+]on Feb 7, 2022 Splitting
angular.jsoninto multiple projects level configuration is something that we definitly want to explore in the future.However, it is very unlikely that it will 1:1 with the NX solution.
Reacted by Maksim Popov, Enea Jahollari, Denis Bendrikov, Michal Jarnot, Sander Elias, Thomas Orlowski, Olufemi Oyewole and Michael Small- addedfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issues
on Feb 7, 2022 - changed the title
[-]Split angular.json into multiple files[/-][+]Split `angular.json` into multiple files[/+]on Feb 8, 2022 - addedfeature: votes requiredFeature request which is currently still in the voting phaseFeature request which is currently still in the voting phase
on Feb 8, 2022 This feature request is now candidate for our backlog! In the next phase, the community has 60 days to upvote. If the request receives more than 20 upvotes, we'll move it to our consideration list.
You can find more details about the feature request process in our documentation.
Reacted by Max Smirnov, Dilshod Sultonov, Sachith Rukshan, Olufemi Oyewole, zavod008 and PowerSupplyReacted by Michal Jarnot, K and Olufemi OyewoleI think that such functionality will lead to a win-win situation for both Angular and Nx.
- ng cli users will get more intuitive and fast code locating
- nx cli team will get an opportunity to adopt the new native approach of splitting
angular.json(and remove some hacks related to v2 schema)
cc: @vsavkin
Reacted by Michal Jarnot, Oleg Luka拧onok, Sachith Rukshan and PowerSupply@Den-dp I will share this issue with more people maybe it will get at least into the consideration list. I have no idea why would anyone dislike this and I would like to hear counterarguments. 馃槄
Personally, if I had to work on a monorepo with Angular and without
nxI would write a custom script that would build theangular.jsonfile the way I described.- addedfeature: under considerationFeature request for which voting has completed and the request is now under considerationFeature request for which voting has completed and the request is now under considerationand removedfeature: votes requiredFeature request which is currently still in the voting phaseFeature request which is currently still in the voting phase
on Feb 18, 2022 It is essential to address this in Angular now, especially with the advent of native federation, which simplifies the process of working on microfrontends within Angular workspaces. Managing a large
angular.jsonfile in this context is neither ideal nor efficient and can become quite cumbersome.- marked Allow projects to have their own angular.json file #30278 as a duplicate of this issue
on May 9, 2025 Anything new regarding this?
馃殌 Feature request
Description
I have a monorepository and I want to split my
angular.jsoninto separate files.So that I can have something like this:
After working with NX I noticed that with Lerna and the usual setup my
angular.jsonfile has 119 lines of code even though I basically have an empty repository. I believe that having a singleangular.jsonfile is a very bad idea, especially for bigger monorepositories or UI libraries.Describe the solution you'd like
Make the JSON configuration 1:1 with what NX does or implement similar functionality.