angular / angular/angular-cli

Split `angular.json` into multiple files

オープン
#22,655 コメント 6 件 リアクション 73 件 担当者 0 名 GitHub で見る
area: @angular-devkit/core area: @angular/cli feature feature: under consideration
主要言語
TypeScript
スター
27k
フォーク
11.8k
平均マージ
14時間 23分
マージ済み PR(30日)
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
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。