1844 Commits

Author SHA1 Message Date
Renovate Bot
bc5717b2d9 build: update copy-webpack-plugin to version 6.0.4 2020-08-31 11:56:46 +01:00
Renovate Bot
e3486e3e28 build: update source-map-loader to version 1.1.0 2020-08-31 11:55:53 +01:00
Renovate Bot
2a90263497 build: update rollup to version 2.26.8 2020-08-31 11:55:42 +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
Charles Lyding
71360878d9 fix(@angular-devkit/build-angular): ensure ivy extraction file names match sourcemaps
Not doing so results in a circular sourcemap warning when attempting extraction.
2020-08-28 08:55:36 +01:00
Renovate Bot
de0dc55116 build: update mini-css-extract-plugin to version 0.11.0 2020-08-28 08:55:16 +01:00
Charles Lyding
df70c7a857 refactor(@angular-devkit/core): remove experimental workspace API
BREAKING CHANGE:
The experimental workspace API has been removed from `@angular-devkit/core`.  This API was no longer used by the Angular CLI and was replaced with the stable workspace API also found within `@angular-devkit/core`. This change does not affect project code and is related to tooling infrastructure only.
2020-08-28 08:53:38 +01:00
Charles Lyding
156e31778f feat(@angular-devkit/build-angular): ask to use a new port if in use
The dev-server builder will now ask the user if an available port can be used when a specified port is already in use.  If the user answers in the affirmative, an available port will be used instead.  Otherwise, the serve operation will fail.  If the terminal is not interactive (for example, CI), the serve operation will fail directly in the event of an already in use port.
2020-08-28 08:52:40 +01:00
Alan Agius
86fe03c979 build: update webpack-merge to version 5.1.2 2020-08-28 08:50:30 +01:00
Charles Lyding
4d6488e900 refactor(@angular-devkit/schematics): remove internal use of isAction helper 2020-08-27 21:53:29 +01:00
Renovate Bot
464f66559f build: update ng-packagr to version ~10.1.0 2020-08-27 21:52:45 +01:00
Alan Agius
5a43e40656 build: update less-loader to version 7.0.0 2020-08-27 21:52:36 +01:00
Renovate Bot
ee5e2bfdec build: update rollup to version 2.26.6 2020-08-27 21:52:28 +01:00
Charles Lyding
854d1844db fix(@angular-devkit/build-angular): support @angular/localize 10.1.0
Several utility functions within `@angular/localize` were updated in 10.1.0.  This change ensures that this newer version will function with 10.1.0 of `@angular-devkit/build-angular`.
2020-08-26 18:46:14 -04:00
Charles Lyding
c576b113d9 build: update development versions of Angular to 10.1.0-rc.0 2020-08-26 18:46:14 -04:00
Alan Agius
ab62c7a5e8 refactor(@angular-devkit/build-optimizer): refactor tests and logic to use non legacy tslib imports syntax
Tslib is no longer imported using namespace imports, with this change we update the logic to use named imports.
2020-08-26 13:12:45 -04:00
Alan Agius
e49c92660f refactor(@angular-devkit/build-optimizer): refactor scrub file to use typeguards 2020-08-26 13:12:45 -04:00
Charles Lyding
802d5ade78 feat(@angular-devkit/build-angular): allow transformation of i18n extraction builder configuration
This change allows the underlying webpack configuration of the i18n extraction builder to be modified when programmatically using the builder.
Programmatic usage of the `@angular-devkit/build-angular` builders is currently considered experimental.

Closes #16679
2020-08-26 10:54:24 -04:00
Charles Lyding
301d926c8c feat(@angular-devkit/architect): support async generator based builders
"Watch" type builders (builders with more than one result) can now be implemented as async generator functions. This allows such a builder to be more easily implemented in cases where an upstream API is async iterator/generator based or when async generators are the preferred method of implementation.
2020-08-26 09:23:45 -04:00
Renovate Bot
2010023e74 build: update sass-loader to version 10.0.1 2020-08-26 09:23:34 -04:00
Hari G
61701ab259 fix(@angular-devkit/build-angular): handle base tag endOffset in index.html generation
* fix endOffset if the base tag is already present
* add test case for this

Closes #18381
2020-08-25 12:52:38 -04:00
Alan Agius
425b160b52 build: update to TypeScript 4 2020-08-25 04:27:40 -04:00
Alan Agius
c8859810c4 build: remove vendored typescript from build optimizer 2020-08-25 04:27:40 -04:00
Renovate Bot
0933fd0ac4 build: update css-loader to version 4.2.2 2020-08-25 03:47:26 -04:00
Renovate Bot
d8f67e154b build: update sass-loader to version 10.0.0 2020-08-25 03:47:11 -04:00
Renovate Bot
28a20f5abf build: update angular packages 2020-08-25 03:46:54 -04:00
Renovate Bot
87949dafb4 build: update open to version 7.2.0 2020-08-24 15:40:50 -04:00
Renovate Bot
189773d49c build: update rollup to version 2.26.5 2020-08-24 15:38:58 -04:00
Charles Lyding
0d7e0f5eb5 style(@angular-devkit/build-angular): remove duplicate license header 2020-08-24 07:50:01 -04:00
Charles Lyding
3de6f48094 refactor(@angular-devkit/core): adjust types to support strict mode 2020-08-21 16:09:10 -04:00
Renovate Bot
ba1aa086f8 build: update angular packages 2020-08-21 13:27:50 -04:00
Renovate Bot
73aa78316f build: update terser to version 5.2.1 2020-08-21 13:27:30 -04:00
Doug Parker
423cfcf93a refactor(@angular-devkit/core): fix strict types in experimental.
Most of the problems here come from return-only generics. A greater redesign of these core types is necessary to properly fix all the typing issues. However, all these types seem to be exported publicly. In the interest of not introducing any breaking changes, most of these fixes were just casting types to `unknown` or replacing generics with the maximally-allowed type (`JsonValue`).
2020-08-20 20:36:02 -04:00
Doug Parker
5dc60f13c3 refactor(@angular-devkit/core): fix strict typing errors in node/
This fixes a few error surfaced by adding `"strict": true` to `tsconfig.json`.
* `_callFs(fs.readdir, /* ... */)` needs explicit types because `fs.readdir` has a few overloads, which was confusing type inference.
* `TempScopedNodeJsSyncHost._sync` is an uninitialized property, but it was already being checked for `undefined`, so I simply made its type optional.
* `TempScopedNodeJsSyncHost.files` had an incorrect type assertion, but was otherwise correct. I just removed the assertion and let type inference do the trick.
2020-08-20 20:36:02 -04:00
Keen Yee Liau
5f78698024 fix(@angular-devkit/core): strict typings for json, logger, and virtual-fs
This commit fixes typings errors after "strict: true" is enabled in
tsconfig.json for the json, logger, and virtual-fs subpackages in
`@angular-devkit/core`.
2020-08-20 20:19:40 +02:00
Renovate Bot
ec442c7a0e build: update source-map-loader to version 1.0.2 2020-08-20 19:49:05 +02:00
Charles Lyding
7045cee223 refactor(@angular-devkit/core): allow creation of a host from a non-observable source 2020-08-19 16:00:33 +02:00
Alan Agius
3e76676fe1 test: disable resolve global test which fails under bazel
This test currently fails under Bazel. `Expected function not to throw, but it threw Error: Could not find module "npm" from "/"..`

NB: The resolve method is deprecated
2020-08-19 16:00:07 +02:00
Alan Agius
d1adba1347 build: update build_bazel_rules_nodejs to 2.0.2 2020-08-19 16:00:07 +02:00
Renovate Bot
45084b57d7 build: update terser to version 5.2.0 2020-08-19 10:22:09 +02:00
Renovate Bot
1c2ac04bcf build: update rollup to version 2.26.4 2020-08-19 10:21:44 +02:00
Charles Lyding
a5293fe747 feat(@angular-devkit/build-angular): support i18n message extraction with Ivy
This change adds support for extracting i18n translation messages with an Ivy enabled application. This is accomplished by using the new extraction capabilities present in the `@angular/localize` package and will require version 10.1 or later of the package.  Since this change uses an new extraction method, it currently must be enabled during extraction by using the `--ivy` flag. The flag is a precaution to prevent unintentional breakage for existing applications but will become the default behavior for all Ivy enabled applications in a future release.

Closes #18275
2020-08-18 16:49:45 +02:00
santoshyadavdev
dfef55e3f7 refactor(@angular-devkit/core): remove any types 2020-08-18 16:32:42 +02:00
Renovate Bot
916e40fb13 build: update angular packages 2020-08-18 08:43:03 +02:00
Alan Agius
60a42c28f6 refactor(@angular-devkit/build-angular): remove JIT mode styles and templates workaround 2020-08-17 19:17:46 +02:00
Alan Agius
439385fef6 fix(@angular-devkit/schematics-cli): use workflow to list schematics
Closes #18548
2020-08-17 18:20:25 +02:00
Alan Agius
3258267776 style(@angular-devkit/core): fix formatting 2020-08-17 18:18:24 +02:00
Alan Agius
a838835bd4 feat(@angular-devkit/schematics-cli): show warning when using deprecated options 2020-08-17 18:18:24 +02:00