Asset copy with wildcard in the input path
- Ngôn ngữ chính
- TypeScript
- Star
- 27k
- Fork
- 11.8k
- Merge trung bình
- 14 giờ 23 phút
- Pull request đã merge (30 ngày)
- 162
Mô tả
# 🚀 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.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách theo dõi việc xử lý asset trong các lệnh build, serve, test và e2e, vì issue báo cáo hành vi khác nhau giữa chúng. Xác định cách các đường dẫn đầu vào wildcard thiết lập thư mục gốc sao chép và xác minh rằng các asset được yêu cầu được sao chép mà không tạo ra các thư mục trung gian không mong muốn. Được xem là hoàn thành khi đường dẫn wildcard hoạt động nhất quán với các lệnh được liệt kê, bao gồm cả đầu ra của serve.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- angular, typescript
- Lĩnh vực
- build-system, cli
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100