-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use TSConfig bases in npm to reduce the number of TSConfigs in a project #18101
Comments
Currently extending a tsconfig from node_modules will not work properly with the Angular Compiler. |
Hi @orta, thanks for bringing this up! It's an interesting project to learn about. We talked about this amongst the tooling team and had a few thoughts on the matter.
For Angular's case, we already have If we changed Angular to use Even if we did go the route of moving Probably the biggest challenge is that it would complicate migrations. Angular updates user code between major versions to reduce the impact of breaking changes. This would be harder to write and manage if there is an existing configuration inherited from a dependency and more effort to support. It also wouldn't provide any more consistency across Angular applications, because we would still need a As a result of all these points, we don't think it makes sense to have Angular deploy base
|
Totally reasonable to me 👍 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🚀 feature request
👋 - hi folks. I got notified that we could probably improve the default template for an angular project using the tsconfig bases repo. A. quick 5m explainer on the project is here.
Disclaimer: I've never built an Angular app, so some of this is from looking at the base template, and I'm not sure how tsconfig's would evolve over time in large projects.
Relevant Package
ng generate
's templateDescription
TSConfig files can come from NPM, and TSConfig Bases is a DefinitelyTyped-like tool for making them. Today, there are a few recommended bases for frameworks (svelte, react-native, deno etc) and given there are a few angular TSConfigs then I think it could be possible to move them into node_modules.
So for example there could be
@tsconfig/angular-base
@tsconfig/angular-test
Which the user's projects can extend from.
The text was updated successfully, but these errors were encountered: