angular / angular/angular-cli

Progress indication for schematics

未关闭
#12,479 3 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
area: @angular-devkit/schematics area: @angular/cli feature feature: votes required ng update DX
主要语言
TypeScript
星标
27k
派生
11.8k
平均合并
14 小时 23 分钟
30 天内合并 PR
162

描述

Since the `TSLintFixTask` can take a lot of time (e.g. if used to apply source code transformations for `ng-update`), it would be nice to have a progress indicator that shows that "something" actually runs.

For example: if someone runs `ng update @angular/material@next`, it's not clear for a period of time that the fix task actually "runs". See: https://github.com/angular/material2/issues/12774.

An option that can be specified when configuring the `TSlintFixTask` would be nice to have. The option would then show a simple progress indicator while TSLint runs.

---

Ideally there would be a way for a schematic to:

* Have an progress-spinner with a name of the schematic currently running
* Report a status (similar to how Bazel `repository_ctx` can report statuses)

Nowadays a lot of schematics need to run as part of an `ng update` and it would be helpful to know what schematic currently runs / what it currently does (if known)

cc. @jelbourn

贡献指南

打开贡献指南

调研方向

Start by tracing the TSLintFixTask used during ng update and review how schematics currently report activity. Define the scope for a configurable progress indicator and the broader schematic status reporting described in the issue; done should make long-running fixes visibly active and identify the running schematic when possible.

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

评估

技术栈
angular, typescript
领域
cli, tooling
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
基本清楚
新手友好度
30/100

把新 issue 发到你的邮箱

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