2084 Commits

Author SHA1 Message Date
Renovate Bot
74783b919b build: update typescript to version 4.0.5 2020-10-27 09:52:42 -04:00
Alan Agius
c71e1691b9 build: update puppeteer to 5.4.0 2020-10-26 14:20:50 -04:00
Charles Lyding
f6d9028f8b fix(@angular-devkit/build-angular): skip application emit during i18n extraction
The application output files are not needed during an extraction.  Previously the files were emitted to a memory file system and discarded.  This change removes the processing overhead of emitting the files.  It also provides Webpack 5 support due to the internal memory file system no longer being exported.
2020-10-26 13:32:46 -04:00
Renovate Bot
013ffbd946 build: update mini-css-extract-plugin to version 1.2.0 2020-10-26 13:30:33 -04:00
Renovate Bot
be0ed38f62 build: update license-webpack-plugin to version 2.3.1 2020-10-26 13:30:01 -04:00
Charles Lyding
3447709458 test(@angular-devkit/build-angular): remove sole NodeJsAsyncHost usage
The `NodeJsAsyncHost` was only used in one location within a unit test and was not required to be used in that location.
2020-10-26 10:13:59 -04:00
Charles Lyding
ae899935f6 refactor(@angular-devkit/core): remove unneeded clean utility function use
The reduce call can be used to directly filter undefined elements.
2020-10-26 10:13:59 -04:00
Alan Agius
58dfe228f0 build: remove @types/jasminewd2 from repo devDependencies 2020-10-26 10:13:05 -04:00
Charles Lyding
e22c196c32 fix(@angular-devkit/build-angular): support emitting AVIF image files 2020-10-23 14:43:18 -04:00
Renovate Bot
c2b0417c86 build: update sass-loader to version 10.0.4 2020-10-23 14:43:03 -04:00
Renovate Bot
4996e5d8d0 build: update mini-css-extract-plugin to version 1.1.2 2020-10-23 14:42:45 -04:00
Renovate Bot
648c3ef03f build: update terser to version 5.3.8 2020-10-23 12:14:58 -04:00
Renovate Bot
88f6717f2a build: update jest-worker to version 26.6.1 2020-10-23 12:14:21 -04:00
Charles Lyding
e4a3138395 refactor(@angular-devkit/build-webpack): reduce configuration path processing 2020-10-22 15:17:06 -04:00
Charles Lyding
dc3cdae7b9 fix(@angular-devkit/build-webpack): fully close Webpack 5 compiler
The Webpack 5 compiler now contains a close function that should be called when the compiler is finished.
2020-10-22 15:17:06 -04:00
Alan Agius
f122b2f351 fix(@angular-devkit/build-angular): don't add publicHost pathname to sockPath in dev-server
With this change we remove the unintentional breaking change that added publicHost pathname to sockPath instead we now prepend the sockPath with the servePath, which can be either the passed servePath option, baseHref or deployUrl.
2020-10-22 15:49:20 +02:00
Alan Agius
faf650c990 refactor(@angular-devkit/build-angular): remove legacy server bundle guess logic
Closes #16353
2020-10-22 15:49:01 +02:00
Charles Lyding
cc723d8d74 feat(@angular-devkit/build-angular): support following symlinked asset directories
By default subdirectories within a symlinked directory are not searched by a glob.  The new `followSymlinks` option for the longhand form of the `assets` browser builder option now allows opting in to search such subdirectories.
2020-10-21 22:03:24 +02:00
Charles Lyding
83c91204ed fix(@angular-devkit/core): allow prompt providers to access property types
This allows prompt providers to adjust their logic based on the type of property requested.
2020-10-21 16:37:11 +02:00
Renovate Bot
2be47ba836 build: update rollup to version 2.32.1 2020-10-21 14:15:13 +02:00
Renovate Bot
61edb75398 build: update mini-css-extract-plugin to version 1.1.1 2020-10-21 09:06:35 +02:00
Charles Lyding
0b0961c9c2 refactor(@angular-devkit/schematics): minor cleanup to reduce utility imports 2020-10-21 09:05:45 +02:00
Charles Lyding
b6a3353edb refactor(@angular-devkit/core): deprecate unused isFile/isDirectory utilities
`isFile` and `isDirectory` are tooling only APIs for Node.js that are no longer used by the Angular CLI.
2020-10-20 18:47:35 +02:00
Alan Agius
2298ab865b refactor(@angular-devkit/build-angular): remove deprecated browser build option rebaseRootRelativeCssUrls
BREAKING CHANGE:

Deprecated `rebaseRootRelativeCssUrls` browser builder option has been removed without replacement. This option was used to change root relative URLs in stylesheets to include base HREF and deploy URL and was used only for compatibility and transition as this behavior is non-standard.
2020-10-20 16:53:24 +02:00
Renovate Bot
46ef4cfb78 fix(@angular-devkit/build-angular): update resolve-url-loader to version 3.1.2
Closes: #19134
2020-10-20 13:06:15 +02:00
Renovate Bot
3d0b6be0ea build: update mini-css-extract-plugin to version 1.1.0 2020-10-20 09:21:16 +02:00
Alan Agius
bfb33b15e1 refactor(@angular-devkit/build-angular): remove support for TypeScript 3.9
BREAKING CHANGE:

TypeScript 3.9 is no longer supported, please upgrade to TypeScript 4.0.
2020-10-20 08:52:27 +02:00
Alan Agius
54fc6f1923 refactor(@angular-devkit/build-angular): minor cleanup to dev-server code 2020-10-20 08:51:41 +02:00
Alan Agius
7b77e92338 refactor(@angular-devkit/build-angular): remove allowed webpack and @angular-devkit/build-angular from CommonJsUsageWarnPlugin
These are no longer needed
2020-10-20 08:51:41 +02:00
Renovate Bot
ff07ef8e8e build: update terser to version 5.3.7 2020-10-19 20:18:07 +02:00
Charles Lyding
445fe1d4e6 fix(@angular-devkit/schematics): show active package manager with install task
The manager that is being used to perform the package installation will now be shown during the installation.  This provides more insight to the user as well as providing additional troubleshooting information in the event of a failure.
2020-10-19 20:12:08 +02:00
Jaime Oliveira
ae94245131 fix(@angular-devkit/build-angular): add a base href to karma debug context
This commits adds a base href value in the karma context iframe used to run unit tests where a unit test throws:
No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.
Even if the application is fine.
This is because the index.html from Angular CLI contains a base href value, but not the Karma context iframe.
So when adding a unit test with a testing module that imports a NgModule, for example AppModule,
which itself imports RouterModule, the unit test used to throw an error (regression appeared in router 3.1).
That could be solved by either adding `RouterTestingModule` to the testing module,
or by adding a provider `{ provide: APP_BASE_HREF, useValue: '/' }`, but required to understand the issue.
This solves the issue in a transparent way: developers won't even encounter the problem anymore.

Closes #19116
2020-10-19 12:34:47 +02:00
Renovate Bot
3a29d8abd7 build: update webpack-subresource-integrity to version 1.5.1 2020-10-19 09:55:57 +02:00
Renovate Bot
4c1c11eda8 build: update rollup to version 2.32.0 2020-10-17 16:01:26 +02:00
Renovate Bot
72d340fb46 build: update babel packages 2020-10-17 16:00:41 +02:00
Alan Agius
574d309cda fix(@angular-devkit/build-angular): don't set watchOptions in webpack-middleware
`webpack-dev-middleware` doesn't have a `watchOptions`

See: https://github.com/webpack/webpack-dev-middleware/blob/master/src/options.json
2020-10-16 21:08:18 +02:00
Alan Agius
f7f6eede23 fix(@angular-devkit/build-angular): disable dev-server live-reload when using protoactor
LIve-reload is not needed when using protoactor because watch mode is always disabled.
2020-10-16 21:08:18 +02:00
Alan Agius
247b87d40a refactor(@angular-devkit/build-angular): move dev-server webpack config in a separate file
With this change we remove webpack dev-server logic to a seperate file. We also use the webpack-dev-server API to add live-reload and hmr entry-points and settings.
2020-10-16 21:08:18 +02:00
Alan Agius
710e12dd7d fix(@angular-devkit/build-angular): correctly reference hmr-accept.js file in windows error
Backslashes need to be changed to forward slashes for absolute imports to work in Windows.

Closes #19099
2020-10-16 21:03:57 +02:00
Charles Lyding
eac9e994a6 fix(@angular-devkit/build-angular): ensure correct SRI values with differential loading
Previously, the cached integrity values for a subsequent differential loading build would not be properly integrated.  This resulted in builds with incorrect integrity values after an initial build.  The cached differential loading builds will now use the correct integrity values on subsequent builds.

Closes #18254
2020-10-16 12:07:16 +02:00
Renovate Bot
6937a3e1ae build: update rollup to version 2.31.0 2020-10-16 12:07:01 +02:00
Charles Lyding
58a7deac67 fix(@angular-devkit/build-angular): set HTML lang attribute when serving
When using the non-deprecated localization options, the development server was not properly setting the HTML `lang` attribute for the application.  This change ensures that the active locale is used within the application's index HTML file.

Closes #18094
2020-10-15 18:59:32 +02:00
Alan Agius
e1d0d0898d docs(@angular-devkit/build-angular): improve headers option description 2020-10-15 18:30:24 +02:00
Alan Agius
4d2f4ec2c1 fix(@angular-devkit/build-angular): override already existing assets in compilation
With this change we align the copying of assets between `ng build` and `ng serve`. Previously in `ng serve` already copied assets where not overridden.

More info: https://webpack.js.org/plugins/copy-webpack-plugin/#force

Closes #18787
2020-10-15 17:16:59 +02:00
Alan Agius
1d0d90e1b1 refactor(@angular-devkit/build-angular): simplify global_defs usage from @angular/compiler-cli.
This change results in the same options being set. See: 66e6b932d8/packages/compiler-cli/src/tooling.ts (L25-L34)
2020-10-15 16:10:35 +02:00
Charles Lyding
2f456778c7 fix(@angular-devkit/build-optimizer): support jit mode guarded class metadata removal
This adds support for the alternate emit form of `ɵsetClassMetadata` that is guarded by `ngJitMode` instead of a pure annotation.
2020-10-15 13:53:25 +02:00
Renovate Bot
d05c70e606 build: update core-js to version 3.6.5 2020-10-15 07:37:14 +02:00
Alan Agius
e253fffbe6 refactor(@angular-devkit/build-angular): move addition of HMR plugins and loaders to webpack configs 2020-10-14 21:57:47 +03:00
Alan Agius
7253802d74 refactor(@angular-devkit/build-angular): change hmr-accept to TypeScript
For the time being we cannot use the DOM lib because it conflicts with Node, In future when we remove `yarn admin build` we should have this as a seperate compilation unit.
2020-10-14 21:57:47 +03:00
Alan Agius
c345ec369f test(@angular-devkit/build-angular): test HMR using puppeteer 2020-10-14 21:57:47 +03:00