Skip to content

Summarize the display output when ngcc is running during ng build #16899

@johnpapa

Description

@johnpapa

🚀 Feature request

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • xi18n
  • run
  • config
  • help
  • version
  • doc

Description

A clear and concise description of the problem or missing capability...

When ng build first runs, we get a long list of text. it is not a great experience ... perhaps we can trim this up or explain it better or show it in a different way.

Describe the solution you'd like

If you have a solution in mind, please describe it.

Ideas ...

  • only display it with --verbose
  • show a single line of output and change the text for what it is compiling as it goes (or a progress bar)
  • title it with WHY it is doing it (because sometimes it is not running). perhaps show it always and say ...

Verifying if ngcc needs to run due to changes.
then you can say ngcc required or show the 1 liner as it compiles.

From @mgechev

We can improve the DX here. Maybe show a spinner and output the targets we're compiling on the same line (just for a sense of progress, because in big projects this may take a while and just showing a spinner may look like the CLI got stuck).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions