633 Commits

Author SHA1 Message Date
Charles Lyding
331f628139 fix(@angular/cli): temporarily limit npm to version 6
This change will display an error message if using npm 7 (or versions earlier than 6). This is a temporarily change while npm 7 usability concerns are addressed.
2021-02-04 14:59:40 -08:00
Charles Lyding
30758d1cc4 fix(@angular/cli): resolve migration collections from containing package
This change ensures that migration collections defined in a package's `ng-update` metadata are resolved from the containing package.  This avoids issues that may arise from package manager hoisting behavior which can result in the wrong migration collection being chosen.  The `--migrate-only` option already contained this resolution logic and now the full update contains it as well.
2021-02-03 12:21:52 -05:00
Renovate Bot
3aaf6a49fa build: update pacote to version 11.2.4 2021-02-02 09:16:58 +01:00
Alan Agius
b8336b2c94 refactor(@angular/cli): use ES6 imports instead of require
Main benefit is to use type definitions.
2021-02-02 07:46:32 +01:00
Renovate Bot
7513170459 build: update open to version 7.4.0 2021-02-01 15:11:29 +01:00
Dominic Elm
33ee97625e fix(@angular/cli): remove unnecessary promise around "open" 2021-02-01 10:29:54 +01:00
profanis
9a6541f882 refactor(@angular/cli): fix super minor typo
while I was making myself familiar with the code-base
to solve an open issue, I saw this super minor typo
and decided to fix it
2021-01-28 19:39:34 +01:00
Charles Lyding
86d69e22fb fix(@angular/cli): redirect Angular schematic dependency requests to known versions
This change adds logic to redirect module resolution requests for Angular schematics to ensure that the correct versions of core schematic related packages are used.  This also ensures that the runtime version of the schematics package matches the version used inside the schematic and that object instances passed into the schematic are compatible.
The current set of core schematic related packages are `@angular-devkit/*` and `@schematics/angular`.  Only first-party Angular schematics are currently affected by this change.
2021-01-28 12:44:34 +01:00
Charles Lyding
bd040bd4d6 feat(@angular/cli): provide additional status messaging for ng add
This adds a spinner as well as shows more information regarding what package version was selected to be installed.

Closes #17983
2021-01-28 07:36:15 +01:00
minijus
5cdf4ccd1d fix(@schematics/update): update line end normalization for CA file read from .npmrc
Before only first line end was being replaced.
Also, the replace value was incorrectly escaped.

The CA read from cafile being corrupt resulted in broken updates
when using registry with self-signed certificate.

The workaround till this is merged is to use `ca` or `ca[]` properties in `.npmrc`.
2021-01-26 09:25:29 -06:00
Renovate Bot
74a1c2a2b9 build: update pacote to version 11.2.3 2021-01-25 09:20:00 -06:00
Alan Agius
9af0942e69 fix(@angular-devkit/build-angular): inlining fonts behind proxy
With this change users can now their proxy server via the `HTTPS_PROXY` environment variable. The specified proxy will be used when making requests to inline fonts.

Closes #19401
2021-01-25 09:17:03 -06:00
Charles Lyding
776a6ece58 fix(@angular/cli): avoid analytics cli object check if not present
The `cli` workspace configuration property was previously checked to determine if it was an object even if the property did not yet exist.
2021-01-20 14:44:12 -05:00
Renovate Bot
0b3b7ebcc0 build: update pacote to version 11.2.2 2021-01-20 14:15:32 -05:00
Alan Agius
8ec493e7cc docs(@angular/cli): update vendorChunk and commonChunk descriptions 2021-01-20 10:30:28 -05:00
minijus
8047f3be3a fix(@angular/cli): add @angular-devkit/architect to ng-update packageGroup 2021-01-20 10:29:38 -05:00
Alan Agius
7981d9fba9 docs: change documentation text 2021-01-15 13:31:19 -05:00
Renovate Bot
999c75eda6 build: update pacote to version 11.2.1 2021-01-15 07:54:18 -05:00
Charles Lyding
1f16d113a9 fix(@angular/cli): avoid using number inquirer prompt in schematic prompts
The number prompt type currently prevents correction of an invalid user entered value after schema validation. An input type is now used instead.  Type coercion based on the schema type(s) already occurs during the filter phase for the inquirer question.
2021-01-14 15:37:41 -05:00
Renovate Bot
93b18133dc build: update pacote to version 11.2.0 2021-01-14 10:02:02 -05:00
wenqi73
ab72f8dab0 feat(@angular-devkit/build-angular): support extracting and merging with arb format 2021-01-08 20:45:08 +01:00
wenqi73
dc9766738d feat(@angular-devkit/build-angular): support extracting with json file 2021-01-08 20:45:08 +01:00
Renovate Bot
43e65e578b build: update pacote to version 11.1.14 2021-01-08 10:13:54 +01:00
Renovate Bot
d02897ee05 build: update open to version 7.3.1 2021-01-07 09:57:25 +01:00
Alan Agius
7cd06b7f23 docs: update optimization and sourceMap descriptions with new links
https://next.angular.io/guide/workspace-config#source-map-configuration
https://next.angular.io/guide/workspace-config#optimization-configuration
2020-12-23 08:25:53 +01:00
Alan Agius
efcec6249d docs: clarify that the options of ng lint in AIO are of the deprecated builder
Fix: #19638
2020-12-19 21:01:01 +01:00
Chris Joe
66deb3a753 docs(@angular/cli): fix schema.json description for lazyModules 2020-12-18 08:29:45 +01:00
Alan Agius
36889b6a76 fix(@angular/cli): update pacote to version 11
With this change Pacote is updated to version 11.1.13.

This also requires normalization of options because Pacote now passes the options to `npm-registry-fetch` which requires some options to be camelCased.

Partially addresses #19624
2020-12-16 13:57:08 +00:00
Renovate Bot
688575865e build: update ini to version 2.0.0 2020-12-15 12:33:28 +00:00
Renovate Bot
3c0b9f1281 build: update uuid to version 8.3.2 2020-12-15 12:33:02 +00:00
Renovate Bot
876ddd1848 build: update semver to version 7.3.4 2020-12-15 12:32:44 +00:00
dependabot[bot]
f2c89e8bfe build: bump ini from 1.3.5 to 1.3.6
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.6.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.6)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-11 13:55:34 +00:00
Alan Agius
e49991b858 docs: add missing full stop at the end of the configuration description 2020-12-09 14:36:07 -05:00
Alan Agius
e68c59a37c docs: update inline option description 2020-12-09 14:36:07 -05:00
Alan Agius
f0d18e990e docs: change sourcemap to source map
The latter is more in used in other articules such as:
-  https://developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Use_a_source_map
- https://developers.google.com/web/tools/chrome-devtools/javascript/source-maps
2020-12-09 14:36:07 -05:00
Alan Agius
d368bfd684 fix(@angular/cli): allow trailing commas in JSON files
Currently, both tsconfigs and workspace configuration files can contain trailing commas

Closes #19576
2020-12-09 09:52:35 -05:00
Alan Agius
c99cef7ed6 docs: remove when true, when false from argument descriptions
It's confusing and redundant to use `When true` and `when false` in descriptions for a CLI arguments because specifying false/true is redundant in a command line argument flag and in most cases users will not do it.

Example:
`--foo=true` is the same as `--foo`
`--foo=false` is the same as `--no-foo`
2020-12-08 14:39:23 -05:00
Alan Agius
eb30a92e8a feat(@angular-devkit/build-angular): enable inlining of critical CSS optimizations
This is another feature that we mentioned in the Eliminate Render Blocking Requests RFC (#18730)

Inlining of critical CSS is turned off by default. To opt-in this feature set `inlineCritical` to `true`.

Example:
```json
"configurations": {
  "production": {
    "fileReplacements": [
      {
        "replace": "src/environments/environment.ts",
        "with": "src/environments/environment.prod.ts"
      }
    ],
    "optimization": {
      "styles": {
        "minify": true,
        "inlineCritical": true,
       }
    },
```

To learn more about critical CSS see;
https://web.dev/defer-non-critical-css
https://web.dev/extract-critical-css/

In a future version of the Angular CLI `inlineCritical` will be enabled by default.

Closes: #17966
Closes: #11395
Closes: #19445
2020-12-04 15:41:29 -05:00
Alan Agius
ee6bb1359f docs: fix elimination typo 2020-12-04 13:42:26 -05:00
Alan Agius
bd158e9f6d fix(@angular/cli): show deprecation warning when using camel cased arguments 2020-12-02 16:06:36 +01:00
Alan Agius
2a2293cd2d fix(@angular/cli): dasherize names option names when using JSON help
This ensures that arguments listed in https://angular.io/cli help pages are all in kebab cases.

This is a prerequisite to deprecate camel cased arguments.
2020-12-02 16:02:27 +01:00
Alan Agius
b546d798bc docs: add description to localize option 2020-11-30 19:04:21 +01:00
Alan Agius
9c57e45d4e docs: improve description for optimization, configuration and target options.
Closes #16572
Closes #17978
Closes https://github.com/angular/angular/issues/39780
2020-11-25 09:09:00 +00:00
Renovate Bot
0a18698913 build: update debug to version 4.3.1 2020-11-20 11:36:21 +00:00
Charles Lyding
aad3bbf0c1 refactor(@angular/cli): use direct schematic workflow option transform option 2020-11-16 13:14:24 -05:00
Alan Agius
3529fb4822 refactor(@angular/cli): handle undefined JSON AST Node 2020-11-16 12:59:06 -05:00
Renovate Bot
c62cc8b862 build: update jsonc-parser to version 3.0.0 2020-11-16 12:59:06 -05:00
Alan Agius
e84e517b59 fix(@angular/cli): remove @angular-devkit/build-ng-packagr from packageGroup
This package is no longer released.
2020-11-15 15:34:44 -05:00
Alan Agius
715a7a5570 fix(@angular-devkit/build-angular): allow json files in fileReplacement
JSON files a can also be valid fileReplacement when using the `resolveJsonModule` TypeScript feature. This causes JSON files to be resolved as JS modules and hence be part of the TypeScript program.

Closes #19378
2020-11-13 15:53:14 -05:00
Renovate Bot
313c3f2340 build: update resolve to version 1.19.0 2020-11-12 12:20:31 -05:00