angular / angular/angular-cli

Add Angular Elements to the "ng g library" compilation's results

未關閉
#13,999 23 則留言 81 個 reaction 已指派 0 人 在 GitHub 檢視
area: @schematics/angular feature feature: under consideration
主要語言
TypeScript
星號
27k
分支
11.8k
平均合併
14 小時 23 分鐘
30 天內合併 PR
162

描述

# 🚀 Feature request

### Command (mark with an `x`)
```
- [x] generate
```

### Description
We know that the "ng g library" helps us with the creation of reusable libraries. The components we create into ous libs can be compiled into multiple JS formats (ES2015, ES5, UMD, ...), which is awesome! Thank you CLI team! However, would it be possible to have them compiled into Web Components as well?

### Describe the solution you'd like
I know that Angular Elements assist with the creation of Web Components. However, I was not able to add Elements to the libs created to "ng g library". Nonetheless, rather than adding it manually... it would be amazing if the CLI team could add that capability to the "ng g library" directly... so that this cmd could insert the necessary configuration for the ng-packager to use and automatically build Web Components alongside the ES2105, UMD, and other formats.

### Describe alternatives you've considered
None yet.

貢獻指南

開啟貢獻指南

研究方向

首先檢視 `ng g library` 的產生流程,以及 ng-packager 設定如何控制程式庫的編譯輸出。當產生的程式庫能夠在現有的 ES2015、ES5、UMD 和其他格式之外,同時建置 Angular Elements/Web Components 時,這項工作就完成了。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
angular, typescript
領域
build-system, cli
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。