angular / angular/angular-cli

Alternative lookup convention for `ng-add` schematics

オープン
#13,026 コメント 3 件 リアクション 4 件 担当者 0 名 GitHub で見る
area: @angular/cli feature feature: insufficient votes
主要言語
TypeScript
スター
27k
フォーク
11.8k
平均マージ
14時間 23分
マージ済み PR(30日)
162

説明

It would be nice to be able to externalize schematics from the package specified in the `ng add` command.

`ng add ionic` requires us to include schematics within the `ionic` package itself, which is not ideal for several reasons:
- **Separation of Concerns**. The `ionic` package isn't necessarily for Angular, but `ng add ionic` looks good 👌
- **Complication of the build within our main package.** Including the schematics in our main package would require including _a lot_ of the Angular DevKit into the build.
- **Slow "add".** It requires installing the entire package and all its dependencies (~38M) in a sandbox just to use a few files from the package.

In slack I believe we concluded that the best solution might be to have the `ng-add` field within `package.json` be allowed to point to another package.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

`ng add` コマンドと `package.json` の `ng-add` フィールドから始め、指定されたパッケージが現在どのように schematics に使用されているかを確認します。`ng-add` エントリから別のパッケージを参照でき、コマンドで指定されたパッケージから schematics を外部化できるようになれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
cli
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
30/100

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

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