angular / angular/angular-cli

ng generate component in library doesn't update public_api and exports

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

描述

### Bug Report or Feature Request (mark with an `x`)
```
- [ ] bug report -> please search issues before submitting
- [x ] feature request
```

### Command (mark with an `x`)
```
- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [x ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
```

### Versions:
```
Angular CLI: 7.2.1
Node: 8.11.3
OS: win32 x64
Angular: 7.2.0
```

After generating `library`, I need to add a component to my library by following:
```
ng generate component foo --project=foo-lib
```

It doesn't update `public_api.ts` and `exports` in `my-lib.module.ts` file. These steps must be done by hand.

貢獻指南

開啟貢獻指南

研究方向

首先,在回報的 Angular CLI 7.2.1 設定下重現 `ng generate component foo --project=foo-lib`,然後檢查產生的 `public_api.ts` 和 `my-lib.module.ts` 檔案。當元件產生能夠在不需手動編輯的情況下更新程式庫的公開 API 和模組匯出時,此變更即完成。

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

評估

技術堆疊
angular, typescript
領域
cli
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
45/100

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

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