1809 Commits

Author SHA1 Message Date
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
Alan Agius
e40c72a8dc feat(@angular-devkit/architect-cli): show warning when using deprecated options 2020-08-17 18:18:24 +02:00
Alan Agius
797bcf9944 feat(@angular-devkit/core): add useXDeprecatedProvider to SchemaRegistry
Use the new provider to record usage of options which have the `x-deprecated` keyword.
2020-08-17 18:18:24 +02:00
Renovate Bot
819790e934 build: update rollup to version 2.26.3 2020-08-17 18:06:38 +02:00
JoostK
876df758f9 fix(@angular-devkit/core): avoid RxJS performance penalty in sync fs calls 2020-08-16 21:00:51 +02:00
Renovate Bot
721ba918b1 build: update rollup to version 2.26.2 2020-08-16 20:42:26 +02:00
Alan Agius
ba81decdd9 refactor(@angular-devkit/core): remove unused imports 2020-08-15 15:36:20 +02:00
Renovate Bot
219e167f8e build: update ajv to version 6.12.4 2020-08-15 11:54:49 +02:00
Renovate Bot
a1081f5365 build: update rollup to version 2.26.0 2020-08-15 09:37:45 +02:00
Renovate Bot
9e9b9691f1 build: update terser to version 5.1.0 2020-08-15 09:07:00 +02:00
Alan Agius
bbe83ae377 fix(@angular-devkit/build-angular): don't warn on transitive CommonJS dependencies in AOT mode
At the moment in AOT mode if a CommonJS dependency has transitive CommonJS dependency we are issue warning for both.

With this change we align the behaviour with JIT mode, where we issue warnings only for direct CommonJS dependencies or ES dependencies which have CommonJS dependencies.

Closes #18526
2020-08-14 16:21:49 +02:00
Alan Agius
8b500d9ab7 refactor(@angular-devkit/build-ng-packagr): deprecate ng-packagr builder methods and options
Use methods and options exported from @angular-devkit/build-angular
2020-08-14 15:38:12 +02:00
Alan Agius
e5b29ac756 feat(@angular-devkit/build-angular): add ng-packagr builder in @angular-devkit/build-angular
With this change we add the `ng-packagr` builder in `@angular-devkit/build-angular`
2020-08-14 15:38:12 +02:00
Alan Agius
ba7f6e8cf2 test(@angular-devkit/build-angular): add ng-packagr test application in build-angular 2020-08-14 15:38:12 +02:00
Alan Agius
155707a1ba fix(@angular-devkit/build-angular): don't log blank warnings in console
Closes #18524
2020-08-14 14:41:18 +02:00
Renovate Bot
882c722ac9 build: update rollup to version 2.25.0 2020-08-14 08:29:11 +02:00
Alan Agius
60e8ac2b1e refactor(@angular-devkit/build-angular): improve HMR warning 2020-08-13 20:53:54 +02:00
Alan Agius
24fedb268c feat(@angular-devkit/build-angular): enable HMR for extracted CSS
The latest versions of mini-css-extract-plugin support HMR, see: https://github.com/webpack-contrib/mini-css-extract-plugin#hot-module-reloading-hmr for more details
2020-08-13 20:53:54 +02:00
Renovate Bot
30804fe16f build: update angular packages 2020-08-13 16:57:04 +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
Tobias Gassmann
57b80ee09c fix(@angular-devkit/architect): add name of the non-existing project to error message 2020-08-13 10:14:28 +02:00
Renovate Bot
151af8e3fb build: update terser-webpack-plugin to version 4.1.0 2020-08-13 10:13:28 +02:00
Renovate Bot
75897676b3 build: update worker-plugin to version 5.0.0 2020-08-12 19:29:45 +01:00
Charles Lyding
8cca8ab961 refactor(@angular-devkit/build-angular): cleanup server webpack configuration 2020-08-12 19:29:25 +01:00
Alan Agius
c34d0b54c8 refactor(@angular-devkit/benchmark): make changes to make this package strict compliant 2020-08-12 19:28:27 +01:00
Alan Agius
a3f6cd3fbf build: add @types/pidusage as dev dependency 2020-08-12 19:28:27 +01:00
Alan Agius
0ba5664525 refactor(@angular-devkit/build-angular): update bundle calculator make it strict compliant 2020-08-12 19:28:17 +01:00
Alan Agius
5085da3417 refactor(@angular-devkit/build-angular): update postcss-cli-resources plugin to make it strict compliant 2020-08-12 19:28:17 +01:00
Alan Agius
0ac6def35c test(@angular-devkit/build-angular): update allow js test plugin to make it strict compliant 2020-08-12 19:28:17 +01:00
Alan Agius
d5dc73b1c3 refactor(@angular-devkit/build-angular): update analytics plugin to make it strict compliant 2020-08-12 19:28:17 +01:00
Renovate Bot
b7f24d1341 build: update mini-css-extract-plugin to version 0.10.0 2020-08-12 19:28:06 +01:00
Renovate Bot
e4b8d7d9a0 build: update jest-worker to version 26.3.0 2020-08-12 19:27:52 +01:00
Charles Lyding
4e76f5a4aa fix(@angular-devkit/schematics): ensure task option values are defined 2020-08-12 19:27:38 +01:00
Charles Lyding
165abc820b fix(@angular-devkit/schematics): verify filesystem createSourceFromUrl context before use 2020-08-12 19:27:38 +01:00
Charles Lyding
3f780804fd refactor(@angular-devkit/schematics): adjust types to support strict mode 2020-08-12 19:27:38 +01:00
Alan Agius
2dada50774 refactor(@angular-devkit/build-angular): change allEquivalent parameter type of generic iterable
Co-authored-by: Charles <19598772+clydin@users.noreply.github.com>
2020-08-12 19:27:19 +01:00