You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would love to see that, too! I have two apps already that need exactly this:
The app is the same but depending on the build the assets, styles or even some components need to change. This is already possible by use of the projects or configuration and then ng build customer1, ng build customer1 OR ng build configuration=customer1 and ng build configuration=customer2. But without extend functionality this creates TONS of duplicate configration code.
Btw. file replacement for all file types is already implemented in upcoming release 6.1.0. E.g. you can then replace component-a.ts with component-b.ts for one build. Anyway, without the extend functionality, we have to create tons of duplicate code as you mentioned.
Do you think it's possible to achieve with schematics? I'm thinking about having a template config and expand it to many variations into angular.json with some schematic or NodeJS script. What do you think?
I am generally wary of the "autogenerate lots of clunky configuration" idea.
It tends to be brittle, in particular between updates, and makes things hard to debug as we essentially invent yet another language. This was the "Turing-complete XML configuration" hell Java went through, with the same vision of "you just need to right-click in your IDE and not worry about the 400Kb XML which suddenly appeared. (Except when something did go wrong, as it inevitably will)".
Activity
MickL commentedon Jun 14, 2018
Would love to see that, too! I have two apps already that need exactly this:
The app is the same but depending on the build the assets, styles or even some components need to change. This is already possible by use of the
projectsorconfigurationand thenng build customer1,ng build customer1ORng build configuration=customer1andng build configuration=customer2. But without extend functionality this creates TONS of duplicate configration code.Btw. file replacement for all file types is already implemented in upcoming release
6.1.0. E.g. you can then replace component-a.ts with component-b.ts for one build. Anyway, without the extend functionality, we have to create tons of duplicate code as you mentioned.fetis commentedon Oct 19, 2018
Do you think it's possible to achieve with schematics? I'm thinking about having a template config and expand it to many variations into
angular.jsonwith some schematic or NodeJS script. What do you think?wulfsberg commentedon Oct 19, 2018
I am generally wary of the "autogenerate lots of clunky configuration" idea.
It tends to be brittle, in particular between updates, and makes things hard to debug as we essentially invent yet another language. This was the "Turing-complete XML configuration" hell Java went through, with the same vision of "you just need to right-click in your IDE and not worry about the 400Kb XML which suddenly appeared. (Except when something did go wrong, as it inevitably will)".
fetis commentedon Oct 19, 2018
But other option is only a lot of error-prone and tedious manual updates.
filipesilva commentedon Jan 29, 2019
Heya, this request looks to be very similar to #10612. I'm closing in favor of that one to keep the discussion in one place.
angular-automatic-lock-bot commentedon Sep 9, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.