542 Commits

Author SHA1 Message Date
Alan Agius
b555c6aa45 fix(@angular/cli): add missing defaults to optimization property 2020-09-24 14:27:25 +02:00
Joey Perrott
25aa2d5929 refactor: remove usages of the term whitelist 2020-09-24 00:07:10 +03:00
Alan Agius
88c3acb945 fix(@angular/cli): favor dirname when resolving @schematics/angular
This ensures that the correct build-in version of `@schematics/angular` is resolved.

Closes #18840
2020-09-24 00:05:58 +03:00
Jefiozie
432fcb0d9b fix(@angular/cli): replace regex with correct project name validation
Closes #17579
2020-09-24 00:04:58 +03:00
Charles Lyding
92f2559dbb refactor(@angular/cli): remove outdated 1.x karma plugin error placeholder
For Angular 6, an error inducing file was introduced in the 1.x location of the karma plugin for the Angular CLI.  This was useful during the 1.x -> 6 transition to assist users to migrate with a helpful error message.  Now that 1.x and 6 are no longer supported, this can be removed.
2020-09-22 10:30:21 -05:00
Renovate Bot
ee37b4bb2d build: update debug to version 4.2.0 2020-09-21 11:56:04 -05:00
Alan Agius
64cc005f0b refactor: change UPDATE action color to cyan 2020-09-14 16:36:30 -04:00
Alan Agius
a21eb1588e fix(@angular/cli): improve logs in ng update
These addresses;
- When a large number of migration are executed, it's hard to differentiate between the title and description.
- Fix alignments of logs
2020-09-14 16:36:30 -04:00
Charles Lyding
b6ea1ab15e fix(@angular/cli): remove version command node module assumptions
This change removes all direct usage of the `node_modules` directory from the version command.  This provides improved support for yarn PnP as well as prevents a crash when a workspace does not have a `node_modules` directory.

Fixes #10474
2020-09-14 07:23:55 -04:00
Keen Yee Liau
297fc923ab build: remove experimental build event protocol 2020-09-11 13:24:38 -04:00
Alan Agius
622d08447d refactor: use ansi-colors instead of removed terminal utils 2020-09-10 20:19:33 +02:00
Renovate Bot
2aa01ac2ca build: update symbol-observable to version 2.0.1 2020-09-05 11:59:41 +02:00
Andrei Alecu
d01d647431 refactor(@angular/cli): improve update package discovery 2020-09-03 18:21:06 +02:00
Charles Lyding
18fdb0139f refactor(@angular/cli): remove node module directory assumption during initialization
This also does some minor code cleanup to the version mismatch check logic which contained the node modules directory reference.
2020-09-03 08:35:40 +02:00
Renovate Bot
b5560ebebe build: update symbol-observable to version 2.0.0 2020-09-03 00:20:40 +03:00
Alan Agius
d49888b350 docs: update fileReplacements description 2020-08-31 11:58:04 +01:00
Renovate Bot
0b6f68964e build: update open to version 7.2.1 2020-08-31 11:55:22 +01:00
Alan Agius
197e96b8c5 refactor(@angular-devkit/build-angular): remove deprecated scripts[].lazy and styles[].lazy
BREAKING CHANGE:

- Deprecated `scripts[].lazy` has been renamed with `scripts[].inject`
- Deprecated `styles[].lazy` has been renamed with `styles[].inject`

Note: this change only effects direct `@angular-devkit/build-angular` users and not application developers. Users will be migrated automatically off these options.
2020-08-31 11:54:23 +01:00
Alan Agius
dd260185a1 refactor(@angular-devkit/build-angular): deprecate extractCss browser builder option
BREAKING CHANGE:

Browser builder `extractCss` option default value has been changed from `false` to `true`. This is to reflect the default behaviour when this deprecated option is removed.
2020-08-31 11:54:23 +01:00
Renovate Bot
87949dafb4 build: update open to version 7.2.0 2020-08-24 15:40:50 -04:00
Charles Lyding
5275892f63 refactor(@angular/cli): remove any type usage 2020-08-24 07:50:01 -04:00
Alan Agius
d1adba1347 build: update build_bazel_rules_nodejs to 2.0.2 2020-08-19 16:00:07 +02:00
Charles Lyding
d096e57884 feat(@angular/cli): update configuration schema with ivy i18n extraction support 2020-08-18 16:49:45 +02:00
Alan Agius
951d99e979 feat(@angular/cli): show warning when using deprecated options
With this change we show a warning when a deprecated option is also defined in the workspace configuration file (angular.json).

Closes: #14966
2020-08-17 18:18:24 +02:00
Alan Agius
e40c72a8dc feat(@angular-devkit/architect-cli): show warning when using deprecated options 2020-08-17 18:18:24 +02:00
Charles Lyding
97637abab4 refactor(@angular/cli): replace experimental workspace API with stable API
This change removes one of the last usages of the experimental workspace API.
2020-08-17 18:05:27 +02:00
Alan Agius
1137e6b65c style(@angular-devkit/build-angular): add missing periods for x-deprecated messages 2020-08-13 20:53:54 +02:00
Charles Lyding
9cd796b124 feat(@angular-devkit/build-angular): support multiple translation files per locale
This change implements the capability to specify multiple translation files per locale. The specified translation files for each locale will be merged prior to localization. The Angular configuration file has been updated to allow for both a single path string or an array of path strings when specifying the translations for each locale. If the same message identifier is present in multiple translation files, a warning will currently be issued and the last file with the duplicate message identifier will take precedence.

Closes #18276
2020-08-13 12:23:59 +02:00
Alan Agius
c824bbb4f7 refactor(@angular/cli): update CLI package to be strict compliant 2020-08-12 19:29:13 +01:00
Alan Agius
fc5d2b3ff2 test: remove tsconfig.base.json from test cases 2020-08-12 19:26:12 +01:00
Renovate Bot
78e8d3c59c build: update uuid to version 8.3.0 2020-07-28 09:40:48 +02:00
Renovate Bot
d939629974 build: update inquirer to version 7.3.3 2020-07-25 12:46:11 +02:00
Keen Yee Liau
fa9136a971 build: minor fixes for google3 sync
This commit makes a few minor changes to enable syncing the CLI repository
into google3.

1. mark pkg_tar and pkg_npm as external
2. remove dependencies (marked as comment) which are stale in google3
3. remove TS files generated from JSON schema in BUILD files since these
   files are compiled and added to the g3 codebase at sync time
4. Some minor typing changes
5. Remove duplicate licenses
6. mark dependencies which are not available in g3 as external
7. Immediately type the result of JSON.parse() as required by g3 linter.
   Otherwise, the type defaults to `any`.
2020-07-24 22:52:22 +02:00
Alan Agius
05588fcee1 refactor: clean up unused code and imports 2020-07-24 08:01:52 +02:00
Alan Agius
5bb853f1d5 build: update @types/inquirer to 7.3.0 2020-07-23 23:30:22 +02:00
Alan Agius
a85ba990eb refactor: clean up several files
Most of these changes are requires for TS 4 update
2020-07-22 12:56:34 +01:00
Vlad Tansky
9fb21644c7 docs: fix typo in ng update --next description
according to https://github.com/angular/angular-cli/pull/18306#issuecomment-660988904
2020-07-21 10:25:53 +01:00
Vlad Tansky
c8e5f7d167 docs: fix typo in ng update --next description 2020-07-21 10:25:53 +01:00
Renovate Bot
ca0e6efc19 build: update open to version 7.1.0 2020-07-21 10:25:04 +01:00
Renovate Bot
10b4d450c2 build: update inquirer to version 7.3.2 2020-07-14 09:44:33 -04:00
Renovate Bot
bfa9f58bb8 build: update inquirer to version 7.3.1 2020-07-13 13:04:12 -04:00
Renovate Bot
ff48a48e0a build: update universal-analytics to version 0.4.23 2020-07-07 10:45:01 +02:00
Renovate Bot
9d333498c6 build: update universal-analytics to version 0.4.22 2020-07-03 12:14:21 +02:00
Renovate Bot
1a819fe1b3 build: update universal-analytics to version 0.4.21 2020-07-02 11:42:31 +02:00
Renovate Bot
a21b22e04b build: update inquirer to version 7.3.0 2020-07-02 08:10:29 +02:00
Alan Agius
ef465487fd fix(@angular/cli): resolve external schematics from workspace root
Resolve schematics collections from the workspace root, as otherwise it will be resolved from the temporary installed CLI version

Closes #18083
2020-07-01 11:29:25 -07:00
Renovate Bot
d25ce9b805 build: update uuid to version 8.2.0 2020-06-24 14:40:35 -04:00
Kishan Gajera
ba0f7acce2 fix(@angular/cli): throw error when specified project does not exist
Currently this falls through to a misleading error for an unsupported build target.

Closes #17682
2020-06-16 09:44:05 +02:00
Renovate Bot
5317beb0dc build: update inquirer to version 7.2.0 2020-06-15 08:47:32 +02:00
Renovate Bot
277bad3895 build: update uuid to version 8.1.0 2020-05-21 09:26:38 +02:00