angular / angular/angular-cli

Asset copy with wildcard in the input path

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

描述

# 🚀 Feature request

### Command (mark with an `x`)

```
- [ ] new
- [ x] build
- [ x] serve
- [x ] test
- [ x] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
```

### Description
Currently assets array allows glob with input path, however input path itself does not support wildcards.
Like ./node_modules/@myscope/**/assets/i18n/*
Where ** is any number of unknown libraries (like shared, services, featureabc).

With glob it would also create every folder between @myscope to assets/i18n, instead of copying just the contents of i18n.

### Describe the solution you'd like
The input path allows wildcards to set the root or a flag to only copy contents of the glob result path.

### Describe alternatives you've considered
Node scripts that requires extra steps and wouldn't know if project output is different from dist and it does not work with serve.

貢獻指南

開啟貢獻指南

研究方向

首先追蹤 build、serve、test 和 e2e 命令中的資產處理,因為 issue 回報了它們之間存在不同的行為。定義萬用字元輸入路徑應如何決定複製根目錄,並驗證所要求的資產是否在不產生不需要的中間資料夾的情況下完成複製。完成標準是,萬用字元路徑對列出的命令都能一致運作,包括 serve 輸出。

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

評估

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

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

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