angular / angular/components

ng-update: consult workspace configuration for determining global stylesheets

未关闭
#24,032 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area: ng-update P4
主要语言
TypeScript
星标
25k
派生
6.8k
平均合并
1 天 8 小时
30 天内合并 PR
91

描述

This is a port of COMP-280 and for just for tracking at this point!

Currently, ng-update always finds global/external stylesheets that need to be migrated by simply
querying for `.css` or `.scss` files in the workspace tree.

This is not ideal since it can mean that non-project files are accidentally migrated. Ideally, we'd just
consult the `angular.json` file to look for `styles`. This makes the logic more future-proof (and avoids issues as in: #18434).

贡献指南

打开贡献指南

调研方向

首先跟踪用于发现全局和外部样式表的 ng-update 逻辑,然后检查 angular.json 中的 workspace 配置及其 styles 条目。完成的标准是,样式表迁移仅限于为项目声明的 styles,而不是 workspace 中的每个 .css 或 .scss 文件;该 issue 未指定测试文件或特定的源代码入口点。

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

评估

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

把新 issue 发到你的邮箱

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