9 Commits

Author SHA1 Message Date
Alan Agius
10cce2c86e refactor(@angular/cli): re-organize the Angular CLI package folder structure 2022-03-09 17:18:53 +01:00
Charles Lyding
3df6fba4c1 refactor(@angular/cli): support bootstrapping with CommonJS startup code
To support the eventual migration of the CLI to ESM, the CLI commandline tool is now bootstrapped by dynamically importing the main initialization code. This is done to allow the main bin file (`ng`) to remain CommonJS so that older versions of Node.js can be checked and validated prior to the execution of the CLI. This separate bootstrap file is needed to allow the use of a dynamic import expression without crashing older versions of Node.js that do not support dynamic import expressions and would otherwise throw a syntax error. This bootstrap file is required from the main bin file only after the Node.js version is determined to be in the supported range. The use of the dynamic import expression allows CommonJS code to execute either CommonJS or ESM code.
2021-08-26 07:30:56 +02:00
Charles Lyding
37a06a7c37 build: format all files
All files are now formatted using the ng-dev tools via prettier.
2021-04-28 16:05:49 -07:00
Charles
5606a4cc0e fix(@angular/cli): handle promise rejection on analytics install prompt (#15455)
A rejection in this case should be ignored to prevent potential installation failure.
2019-08-27 10:24:32 -07:00
Charles Lyding
b630317b4b refactor(@angular/cli): convert workspace access to async
This is in preparation for conversion from the experimental workspace API to the stable workspace API.
2019-08-16 09:32:04 -07:00
Charles Lyding
e6feb0d0db fix(@angular/cli): ensure analytics prompt exceptions are caught
Fixes #14684
2019-06-14 12:58:01 -07:00
Charles Lyding
475ba6610c fix(@angular/cli): only show postinstall prompt when global analytics not configured 2019-04-24 07:16:58 -10:00
Hans Larsen
c840fcb529 fix(@angular/cli): dont force a prompt on non-interactive terminals
For some reason we were forcing the prompt on postinstall, breaking CI.
2019-03-25 12:37:05 -07:00
Hans Larsen
e96c7ce291 feat(@angular/cli): add prompt on post install step
Only prompt the user on interactive terminals.
2019-03-20 15:08:07 -07:00