angular / angular/angular-cli

Asset copy with wildcard in the input path

オープン
#16,283 コメント 3 件 リアクション 7 件 担当者 0 名 GitHub で見る
area: @angular-devkit/build-angular feature feature: insufficient votes
主要言語
TypeScript
スター
27k
フォーク
11.8k
平均マージ
14時間 23分
マージ済み PR(30日)
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 を短くまとめたダイジェスト。