angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

ng build/serve --watch should have a switch to clear the screen before each rebuild

Open axos88 opened this issue 2 years ago • 4 comments

Command

build, serve

Description

Reviving #21559, as I'd like to see the same thing implemented, to always have a clear view of what is actually an error and what has already been addressed. Without this it's very confusing to scroll back and forth to see where the last batch of errors are starting, and what was the output from the last build.

Description of #21559 below:

When I'm refactoring large code-base i revised folowing process:

i have ng serve running i do some changes in bulk without save save all i stop the process clear the console then start the ng serve again I'm doing this to see in isolation what I break, fixed what are new issues etc. So I can focus only on what is relevant

Describe the solution you'd like

it would be nice to have a switch to run ng serve which would clear console everytime it detects change

Describe alternatives you've considered

Currently I'm doing it manually - stopping the process, clearing console and starting ng serve again

axos88 avatar Aug 20 '23 19:08 axos88

This feature request is now candidate for our backlog! In the next phase, the community has 60 days to upvote. If the request receives more than 20 upvotes, we'll move it to our consideration list.

You can find more details about the feature request process in our documentation.

angular-robot[bot] avatar Sep 22 '23 13:09 angular-robot[bot]

Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends.

Find more details about Angular's feature request process in our documentation.

angular-robot[bot] avatar Nov 01 '23 13:11 angular-robot[bot]

Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage.

We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.

You can find more details about the feature request process in our documentation.

angular-robot[bot] avatar Nov 20 '23 13:11 angular-robot[bot]

Here is my upvote for this.

marvhen avatar Nov 25 '23 19:11 marvhen

Starting from version 17.1, pressing c followed by Enter will clear the console when using the Vite-based development server.

alan-agius4 avatar Feb 01 '24 09:02 alan-agius4

@alan-agius4 does c need to be pressed each time we want to clear the console? Or does it tell the cli to clear on each rebuild?

marvhen avatar Feb 01 '24 12:02 marvhen

C+ENTER will need to be pressed everytime you'd want to clear the screen.

alan-agius4 avatar Feb 01 '24 13:02 alan-agius4

But this is not much different than my current capability. I can already press CTRL+L to clear my screen as needed. The desired behavior is for it to automatically clear each time it begins to rebuild, without the need for user interaction.

marvhen avatar Feb 01 '24 13:02 marvhen

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.