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 摘要。