angular / angular/angular-cli

Split `angular.json` into multiple files

未关闭
#22,655 6 条评论 73 个 reaction 已指派 0 人 在 GitHub 查看
area: @angular-devkit/core area: @angular/cli feature feature: under consideration
主要语言
TypeScript
星标
27k
派生
11.8k
平均合并
14 小时 23 分钟
30 天内合并 PR
162

描述

# 🚀 Feature request

- [x] new
- [x] build
- [x] serve
- [x] test
- [x] e2e
- [x] generate
- [ ] add
- [ ] update
- [x] lint
- [ ] extract-i18n
- [x] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

### Description

I have a monorepository and I want to split my `angular.json` into separate files.

So that I can have something like this:

```
{
"version": 2,
"projects": {
"module-auth": "packages/auth",
"module-core": "packages/core",
"module-button": "packages/button"
}
}
```

After working with NX I noticed that with Lerna and the usual setup my `angular.json` file has 119 lines of code even though I basically have an empty repository. I believe that having a single `angular.json` file 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](https://nx.dev/configuration/projectjson#workspace-json) or implement similar functionality.

贡献指南

打开贡献指南

调研方向

从现有的 angular.json 结构以及标记为相关的 Angular CLI 命令开始:new、build、serve、test、e2e、generate、lint 和 run。跟踪这些命令如何使用 workspace 配置,然后定义对独立项目文件的支持,使其行为与所请求的 NX-style 布局一致。

由索引模型根据 Issue 内容生成。

评估

技术栈
angular, typescript
领域
build-system, tooling
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。