7679 Commits

Author SHA1 Message Date
Charles Lyding
8c9b2a2589 test(@angular-devkit/build-angular): remove unneeded custom Jasmine test timeouts
The default Jasmine test timeout is set to 2.5 minutes for all builder tests. The smaller timeouts (that are now removed from individual tests) can lead to test flakes especially on CI which can have large performance variability.
2021-04-04 09:07:06 +02:00
Charles Lyding
9f331e2772 test(@angular-devkit/build-angular): remove redundant browser assets unit test
These unit tests have been rewritten to use the builder test harness in the new test directory structure and can be removed.
2021-04-04 09:07:06 +02:00
Alan Agius
645353db26 fix(@schematics/angular): run update-i18n migration for server builder 2021-04-03 14:45:58 +02:00
Alan Agius
5cf9a08dc7 refactor(@angular-devkit/build-angular): remove deprecated i18n options from server and browser builder
BREAKING CHANGE:

Removal of deprecated browser and server command options.
- `i18nFile`,  use `locales` object in the project metadata instead.
- `i18nFormat`, No longer needed as the format will be determined automatically.
- `i18nLocale`, use `localize` option instead.
2021-04-03 14:45:58 +02:00
Renovate Bot
7d002213be build: update open to version 8.0.5 2021-04-03 13:22:44 +02:00
Charles Lyding
eca5a01f6e fix(@angular-devkit/build-angular): remove deprecated i18nLocale and i18nFormat options from i18n-extract
BREAKING CHANGE: Removal of deprecated `extract-i18n` command options
The deprecated `i18nLocale` option has been removed and the `i18n.sourceLocale` within a project's configuration should be used instead.
The deprecated `i18nFormat` option has been removed and the `format` option should be used instead.
2021-04-02 21:13:26 +02:00
Alan Agius
1473c60cb2 build: update @angular/dev-infra-private package
This updates to a version that contains the following fix https://github.com/angular/angular/pull/41430
2021-04-02 20:34:28 +02:00
Joey Perrott
8bd8d1ac8c build: bump version to v12.0.0-next.8 2021-04-02 11:05:47 -07:00
Joey Perrott
81892614f5 release: v12.0.0-next.7 v12.0.0-next.7 2021-04-02 09:20:19 -07:00
Alan Agius
275dd2cc15 ci: change renovate label to target: minor
This eliminates the requirement that when master is not a major we require to change the label.  `target: minor` is always get merged into master (and master only): ed77bfea26/docs/BRANCHES.md (pull-request-examples)  hence using `target: major` is not needed in this case.
2021-04-02 15:32:19 +02:00
Alan Agius
018a4c24ee ci: use new method for checking range of commits
See: 381ea9d7d4
2021-04-02 13:25:07 +02:00
Charles Lyding
677913fc38 fix(@angular-devkit/build-angular): remove usage of deprecated View Engine compiler
BREAKING CHANGE: Removal of View Engine support from application builds
With the removal of the deprecated View Engine compiler in Angular version 12 for applications, Ivy-based compilation will always be used when building an application.
The default behavior for applications is to use the Ivy compiler when building and no changes are required for these applications.
For applications that have opted-out of Ivy, a warning will be shown and an Ivy-based build will be attempted. If the build fails,
the application may need to be updated to become Ivy compatible.
2021-04-02 08:11:11 +02:00
Renovate Bot
f6759c0bbd build: update angular packages 2021-04-02 08:09:41 +02:00
Charles Lyding
4804cb819d refactor(@angular-devkit/build-webpack): move @angular-devkit/core to a dev dependency
The package's `@angular-devkit/core` dependency is only used in non-test code to provide a single type which is no longer needed with the latest architect.
2021-04-02 08:09:29 +02:00
Charles Lyding
fc429c9204 refactor(@angular-devkit/architect): remove builder option generic json constraint
The `json.JsonObject` generic constraint did not force the options type to be a valid JSON object but required all builders to add the `json.JsonObject` type to all builder option types when calling `createBuilder`.
2021-04-02 08:09:29 +02:00
Charles Lyding
8a805fe0b9 fix(@angular/cli): exclude deprecated packages with removal migrations from update
Deprecated packages that may have been included in a project by the tooling are now ignored when validating an update. This change removes the need to use the `--force` option in a situation where the later migrations will remove and cleanup the deprecated packages.
2021-04-02 08:09:16 +02:00
Charles Lyding
e84fa72751 fix(@angular/cli): ensure update migrations are fully executed
With the move to refactor and centralize the update logic, the schematics wrapper context needs to be updated to create an exception for the new location of the update schematic.
2021-04-02 08:09:16 +02:00
Alan Agius
f6e1fd84a2 refactor(@angular-devkit/schematics-cli): move @schematics/schematics into this package
This change removes the need for the `@schematics/schematics` package and moves it inside `@angular-devkit/schematics-cli`.
2021-04-02 08:09:07 +02:00
Charles Lyding
8185558e79 refactor(@angular/pwa): remove @angular-devkit/core dependency
The `@angular-devkit/core` dependency was only used for two path manipulation functions. Since this schematic already uses Node.js builtins, the `path` builtin can also be used to provide equivalent function without the need for an additional dependency.
2021-04-02 08:08:58 +02:00
Renovate Bot
e310a748dc build: update postcss-import to version 14.0.1 2021-04-02 08:08:47 +02:00
Charles Lyding
2a6bda2fce test(@angular/cli): account for windows line endings in generate exports E2E tests 2021-04-02 08:08:30 +02:00
Alan Agius
1fcc120b16 test(@angular/cli): remove E2E tests which are not used 2021-03-31 12:21:47 -06:00
Charles Lyding
430ee441bd fix(@ngtools/webpack): use correct Webpack asset stage in resource loader
The asset extraction within the Angular compiler plugin resource loader needs to occur at the end of the Webpack asset processing pipeline. This ensures that all analysis and preprocessing of the asset have been performed before the resource asset is extracted from the Webpack child compilation.
2021-03-31 10:06:28 -06:00
Renovate Bot
183528d1a3 build: update core-js to version 3.10.0 2021-03-31 10:06:00 -06:00
Renovate Bot
1907406ca4 build: update postcss to version 8.2.9 2021-03-31 10:05:33 -06:00
Charles Lyding
055fa17823 test(@ngtools/webpack): update webpack test-app E2E to use ivy plugin
This webpack E2E test application now uses the Ivy webpack plugin instead of the deprecated ViewEngine plugin.
2021-03-31 10:05:15 -06:00
Alan Agius
fd2dbb37ca test(@angular-devkit/build-angular): clean up tests from ViewEngine code 2021-03-31 10:04:23 -06:00
Alan Agius
8582ddc35e feat(@schematics/angular): remove entryComponent from component schematic
BREAKING CHANGE:

`entryComponent` option has been removed from the `component` schematic as this was intended to be used with the the now no longer supported ViewEngine rendering engine.
2021-03-31 10:04:05 -06:00
Renovate Bot
34aef32f77 build: update verdaccio-auth-memory to version 10.0.0 2021-03-30 14:38:36 -06:00
Renovate Bot
394abf40a6 build: update husky to version 6.0.0 2021-03-30 14:38:17 -06:00
Alan Agius
0e04a4c843 refactor(@angular-devkit/build-optimizer): remove ngfactories checks 2021-03-30 14:37:09 -06:00
Alan Agius
3d1bd01641 refactor(@angular-devkit/build-angular): remove ngfactories checks 2021-03-30 14:37:09 -06:00
Alan Agius
b35517505f refactor(@angular-devkit/build-angular): remove view engine check from analytics collector 2021-03-30 14:37:09 -06:00
Alan Agius
1c2aeeb46a refactor(@angular-devkit/build-angular): remove view engine app-shell generation
BREAKING CHANGE:  App-shell builder now only supports generation using Ivy
2021-03-30 14:37:09 -06:00
Alan Agius
14c8a09014 refactor(@angular/cli): remove Ivy Workspace from ng version
In version 12, only Ivy will be allowed to be used to compile an application.
2021-03-30 14:36:48 -06:00
Alan Agius
27a41f2615 build: update to critters 0.0.10 2021-03-30 14:35:11 -06:00
Charles Lyding
012700ace5 fix(@angular-devkit/build-angular): remove deprecated View Engine support for i18n extraction
BREAKING CHANGE: Removal of View Engine support from i18n extraction
With the removal of the deprecated View Engine compiler in Angular version 12 for applications, the `ng extract-i18n` command will now always use the Ivy compiler.
The `--ivy` option has also been removed as Ivy-based extraction is always enabled.
The default behavior for applications is to use the Ivy compiler for building/extraction and no changes are required for these applications.
For applications that have opted-out of Ivy, a warning will be shown and Ivy-based extraction will be attempted. If the extraction fails,
the application may need to be updated to become Ivy compatible.
2021-03-30 14:34:52 -06:00
Charles Lyding
33884189cb build: removed unused benchmark utility script
This script no longer performs any test actions as all package code that previously used it has been removed.
2021-03-30 14:34:19 -06:00
Charles Lyding
db4c6baf5a test(@angular-devkit/build-angular): add dev-server builder proxyConfig option tests
This change adds expanded unit tests for the dev-server builder's `proxyConfig` option using the builder test harness.
2021-03-30 14:33:49 -06:00
Charles Lyding
66f1b13eab test(@angular-devkit/build-angular): add dev-server builder servePath option tests
This change adds expanded unit tests for the dev-server builder's `servePath` option using the builder test harness.
2021-03-30 14:33:49 -06:00
George Kalpakas
6fa8856721 fix(@schematics/angular): explicitly specify ServiceWorker registration strategy
This commit updates the `service-worker` schematics to explicitly
specify the ServiceWorker registration strategy in the
[ServiceWorkerModule.register()] call.

We still use the default strategy, so there should be no change in the
behavior of the generated apps. However, it will help people find out
what the default behavior is when debugging potential issues with
delayed ServiceWorker registration.
(See the discussion in angular/angular#41223 for more details.)

[1]: https://angular.io/api/service-worker/ServiceWorkerModule#register
2021-03-30 14:33:19 -06:00
George Kalpakas
fb14945c02 fix(@schematics/angular): correctly handle adding multi-line strings to @NgModule metadata
Previously, `addSymbolToNgModuleMetadata()` assumed that the added
symbol would not span multiple lines. In most cases, the added symbol is
a single word, so this assumption was correct. In some cases, however,
we might want to add a mutli-line string, such as a static method of an
`@NgModule`:

```ts
  imports: [
    SomeModule.staticMethod({
      prop1: 'val1',
      prop2: 'val2'
    })
  ]
```

This commit allows `addSymbolToNgModuleMetadata()` to correctly handle
multi-line strings by ensuring that added metadata symbols are always
put on a new line (even if the array is empty) and each line in the
string is indented as necessary.
2021-03-30 14:33:19 -06:00
George Kalpakas
515f042380 refactor(@schematics/angular): remove dead code paths from addSymbolToNgModuleMetadata() 2021-03-30 14:33:19 -06:00
Renovate Bot
c2c9a4169c build: update rxjs to version 6.6.7 2021-03-29 08:20:35 -06:00
Renovate Bot
480550b849 build: update mini-css-extract-plugin to version 1.4.0 2021-03-29 08:20:21 -06:00
Renovate Bot
e82f46cfbf build: update license-webpack-plugin to version 2.3.16 2021-03-29 08:20:00 -06:00
Renovate Bot
af47803a98 build: update @babel/core to version 7.13.13 2021-03-29 08:19:40 -06:00
Renovate Bot
c1c520e389 build: update @types/minimatch to version 3.0.4 2021-03-29 08:19:12 -06:00
Charles Lyding
649de5d016 test(@angular-devkit/build-angular): remove View Engine related unit tests
With the upcoming removal of View Engine support for applications in version 12, the View Engine related unit tests are no longer needed.
2021-03-29 08:18:39 -06:00
Charles Lyding
598419e685 ci: remove View Engine E2E test job
With the upcoming removal of View Engine support for applications in version 12, the View Engine E2E test job is no longer needed.
2021-03-29 08:18:39 -06:00