Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Asset copy with wildcard in the input path

未关闭
#16,283 3 条评论 7 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
angular, typescript
领域
build-system, cli

调研方向

首先跟踪 build、serve、test 和 e2e 命令中的资源处理,因为 issue 报告了它们之间存在不同的行为。定义通配符输入路径应如何确定复制根目录,并验证所请求的资源是否在不产生不需要的中间文件夹的情况下被复制。完成标准是,通配符路径对列出的命令都能保持一致地工作,包括 serve 输出。

由索引模型根据 Issue 内容生成。

描述

area: @angular-devkit/build-angular feature feature: insufficient votes

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

主要语言
TypeScript
星标
27k
派生
11.8k
平均合并
17 小时 25 分钟
30 天内合并 PR
183

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

angular/angular-cli 的其他 Issue

查看 angular/angular-cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。