Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(@angular-devkit/build-angular): provided earlier build feedback in console #20960

Merged
merged 1 commit into from
May 31, 2021
Merged

fix(@angular-devkit/build-angular): provided earlier build feedback in console #20960

merged 1 commit into from
May 31, 2021

Conversation

alan-agius4
Copy link
Collaborator

With this change we provide earlier feedback in the console during a build. The setup phase can take some times if the project has a large set of dependencies.

We also move several warnings in the dev-server to an earlier phase so that we don't clutter the progress indicator.

Closes #20957

@alan-agius4 alan-agius4 added the target: patch This PR is targeted for the next patch release label May 27, 2021
@alan-agius4 alan-agius4 requested a review from clydin May 27, 2021 06:08
@google-cla google-cla bot added the cla: yes label May 27, 2021
…n console

With this change we provide earlier feedback in the console during a build. The setup phase can take some times if the project has a large set of dependencies.

We also move several warnings in the dev-server to an earlier phase so that we don't clutter the progress indicator.

Closes #20957
@@ -68,6 +68,42 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration {
buildOptions.differentialLoadingNeeded,
);

if (buildOptions.progress) {
const spinner = new Spinner();
spinner.start(`Generating ${platform} application bundles (phase: setup)...`);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the root change.

@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label May 27, 2021
@filipesilva filipesilva merged commit f9acdc7 into angular:master May 31, 2021
@alan-agius4 alan-agius4 deleted the progress-status branch May 31, 2021 12:14
alan-agius4 added a commit that referenced this pull request Jun 4, 2021
With the recent changes in #20960 we moved the spinner to be started outside of the progress callback, this causes a side-effect that after `succeed` is called the spinner will stop reporting progress unless it is started again.
alan-agius4 added a commit that referenced this pull request Jun 4, 2021
With the recent changes in #20960 we moved the spinner to be started outside of the progress callback, this causes a side-effect that after `succeed` is called the spinner will stop reporting progress unless it is started again.

(cherry picked from commit bd82967)
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jul 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Better CLI feedback for e.g. ng serve.
3 participants