Asset copy with wildcard in the input path
- 主要语言
- 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