angular / angular/angular-cli

Asset copy with wildcard in the input path

Offen
#16,283 3 Kommentare 7 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area: @angular-devkit/build-angular feature feature: insufficient votes
Vorherrschende Sprache
TypeScript
Sterne
27k
Forks
11.8k
Ø Merge
14 Std. 23 Min.
Gemergte PRs (30 T.)
162

Beschreibung

# 🚀 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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne damit, die Asset-Verarbeitung in den build-, serve-, test- und e2e-Befehlen nachzuverfolgen, da das Issue unterschiedliches Verhalten zwischen ihnen meldet. Definiere, wie Wildcard-Eingabepfade die Kopierwurzel festlegen sollen, und überprüfe, dass die angeforderten Assets ohne unerwünschte Zwischenverzeichnisse kopiert werden. Erledigt ist die Aufgabe, wenn der Wildcard-Pfad für die aufgeführten Befehle konsistent funktioniert, einschließlich der serve-Ausgabe.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
angular, typescript
Bereich
build-system, cli
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.