-
Notifications
You must be signed in to change notification settings - Fork 12k
fix(@angular-devkit/schematics): hide install output by default #15940
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
Conversation
b6a0add
to
1422925
Compare
obs.next(); | ||
obs.complete(); | ||
} else { | ||
if (!!options.hideOutput) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: !!
is redundant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
const message = 'Package install failed, see above.'; | ||
obs.error(new Error(message)); | ||
} | ||
}); | ||
if (!!options.hideOutput) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: !! is redundant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
@@ -100,16 +99,29 @@ export default function( | |||
} | |||
|
|||
return new Observable(obs => { | |||
spawn(taskPackageManagerName, args, spawnOptions) | |||
// tslint:disable-next-line: no-console | |||
console.log('Installing packages...'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vikerman suggested we add some measure of showing progress.
1422925
to
fba3098
Compare
fba3098
to
b8447f1
Compare
Current output: ``` kamik@RED-X1C6 MINGW64 /d/sandbox/latest-app (master) $ ng update @angular/cli --next --force Using package manager: 'yarn' Collecting installed dependencies... Found 30 dependencies. Fetching dependency metadata from registry... Package "@angular-devkit/build-angular" has a missing peer dependency of "@angular/localize" @ "^9.0.0-next.11". Updating package.json with dependency @angular/cli @ "9.0.0-next.15" (was "9.0.0-next.14")... Updating package.json with dependency @angular-devkit/build-angular @ "0.900.0-next.15" (was "0.900.0-next.14")... Updating package.json with dependency typescript @ "3.6.4" (was "3.5.3")... UPDATE package.json (1353 bytes) warning @angular-devkit/[email protected]: The engine "pnpm" appears to be invalid. warning @angular-devkit/[email protected]: The engine "pnpm" appears to be invalid. warning @ngtools/[email protected]: The engine "pnpm" appears to be invalid. warning @angular-devkit/[email protected]: The engine "pnpm" appears to be invalid. warning @angular-devkit/[email protected]: The engine "pnpm" appears to be invalid. warning @angular-devkit/[email protected]: The engine "pnpm" appears to be invalid. warning @angular/[email protected]: The engine "pnpm" appears to be invalid. warning @schematics/[email protected]: The engine "pnpm" appears to be invalid. warning @angular-devkit/[email protected]: The engine "pnpm" appears to be invalid. warning @schematics/[email protected]: The engine "pnpm" appears to be invalid. Compiling @angular/animations : es2015 as esm2015 Compiling @angular/compiler/testing : es2015 as esm2015 Compiling @angular/core : es2015 as esm2015 Compiling @angular/common : es2015 as esm2015 Compiling @angular/animations/browser : es2015 as esm2015 Compiling @angular/animations/browser/testing : es2015 as esm2015 Compiling @angular/core/testing : es2015 as esm2015 Compiling @angular/platform-browser : es2015 as esm2015 Compiling @angular/common/testing : es2015 as esm2015 Compiling @angular/platform-browser/testing : es2015 as esm2015 Compiling @angular/platform-browser/animations : es2015 as esm2015 Compiling @angular/common/http : es2015 as esm2015 Compiling @angular/router : es2015 as esm2015 Compiling @angular/forms : es2015 as esm2015 Compiling @angular/platform-browser-dynamic : es2015 as esm2015 Compiling @angular/common/http/testing : es2015 as esm2015 Compiling @angular/router/testing : es2015 as esm2015 Compiling @angular/platform-browser-dynamic/testing : es2015 as esm2015 ``` New success output: ``` kamik@RED-X1C6 MINGW64 /d/sandbox/latest-app (master) $ ng update @angular/cli --next --force Using package manager: 'yarn' Collecting installed dependencies... Found 30 dependencies. Fetching dependency metadata from registry... Package "@angular-devkit/build-angular" has a missing peer dependency of "@angular/localize" @ "^9.0.0-next.11". Updating package.json with dependency @angular/cli @ "9.0.0-next.15" (was "9.0.0-next.14")... Updating package.json with dependency @angular-devkit/build-angular @ "0.900.0-next.15" (was "0.900.0-next.14")... Updating package.json with dependency typescript @ "3.6.4" (was "3.5.3")... UPDATE package.json (1353 bytes) Installing packages... Packages installed successfully. ``` New error output: ``` kamik@RED-X1C6 MINGW64 /d/sandbox/latest-app (master) $ ng update @angular/cli --next --force Using package manager: 'yarn' Collecting installed dependencies... Found 30 dependencies. Fetching dependency metadata from registry... Package "@angular-devkit/build-angular" has a missing peer dependency of "@angular/localize" @ "^9.0.0-next.11". Updating package.json with dependency @angular/cli @ "9.0.0-next.15" (was "9.0.0-next.14")... Updating package.json with dependency @angular-devkit/build-angular @ "0.900.0-next.15" (was "0.900.0-next.14")... Updating package.json with dependency typescript @ "3.6.4" (was "3.5.3")... UPDATE package.json (1353 bytes) Installing packages... warning @angular-devkit/[email protected]: The engine "pnpm" appears to be invalid. warning @angular-devkit/[email protected]: The engine "pnpm" appears to be invalid. warning @angular-devkit/[email protected]: The engine "pnpm" appears to be invalid. warning @ngtools/[email protected]: The engine "pnpm" appears to be invalid. warning @angular-devkit/[email protected]: The engine "pnpm" appears to be invalid. warning @angular-devkit/[email protected]: The engine "pnpm" appears to be invalid. warning @angular/[email protected]: The engine "pnpm" appears to be invalid. warning @schematics/[email protected]: The engine "pnpm" appears to be invalid. warning @angular-devkit/[email protected]: The engine "pnpm" appears to be invalid. warning @schematics/[email protected]: The engine "pnpm" appears to be invalid. Compiling @angular/animations : es2015 as esm2015 Compiling @angular/compiler/testing : es2015 as esm2015 Compiling @angular/core : es2015 as esm2015 Compiling @angular/common : es2015 as esm2015 Compiling @angular/animations/browser : es2015 as esm2015 Compiling @angular/animations/browser/testing : es2015 as esm2015 Compiling @angular/core/testing : es2015 as esm2015 Compiling @angular/platform-browser : es2015 as esm2015 Compiling @angular/common/testing : es2015 as esm2015 Compiling @angular/platform-browser/testing : es2015 as esm2015 Compiling @angular/platform-browser/animations : es2015 as esm2015 Compiling @angular/common/http : es2015 as esm2015 Compiling @angular/forms : es2015 as esm2015 Compiling @angular/router : es2015 as esm2015 Compiling @angular/platform-browser-dynamic : es2015 as esm2015 Compiling @angular/common/http/testing : es2015 as esm2015 Compiling @angular/platform-browser-dynamic/testing : es2015 as esm2015 Compiling @angular/router/testing : es2015 as esm2015 Package install failed, see above. ```
9c7b071
to
e2cd48c
Compare
e2cd48c
to
1d29d2d
Compare
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Current output:
New success output:
New error output: