684 Commits

Author SHA1 Message Date
Charles Lyding
114a309b0a refactor(@ngtools/webpack): type cast loader compilation property based on usage 2020-08-12 19:27:00 +01:00
Alan Agius
8763c64768 fix(@ngtools/webpack): issue warning when using strictMetadataEmit
`strictMetadataEmit` option which is not intended to be used  for applications. See: https://angular.io/guide/angular-compiler-options#strictmetadataemit

Closes #18424
2020-08-10 09:46:55 +01:00
Charles Lyding
e8b5246fca refactor(@ngtools/webpack): ensure property initialization before use 2020-08-10 09:43:38 +01:00
Charles Lyding
75afecb88a refactor(@angular-devkit/build-angular): use library output for stylesheet child compilations
This change allows the result of the stylesheet Webpack compilation to be explicitly available for access after the output source code is generated.  The previous method relied on assumptions within the code generated by Webpack and no longer worked with Webpack 5.
2020-08-07 00:57:10 +01:00
Charles Lyding
0f0067f5ae build: update Angular packages to match prelease versions 2020-08-05 11:27:05 -04:00
Charles Lyding
823a8beaa3 refactor(@ngtools/webpack): adjust types to support strict mode 2020-08-03 15:39:39 -04:00
Charles Lyding
e852b62fce refactor(@ngtools/webpack): use type guard based narrowing with TS AST
By leveraging TypeScript's AST type guards, function parameter assumptions and casting can be removed.  Many of these cases caused errors when enabling TypeScript's strict option. This is preliminary work to support enabling full TypeScript strict mode within the project.
2020-08-03 15:39:39 -04:00
Renovate Bot
9104ffd3de build: update angular packages 2020-07-31 09:56:53 +02:00
Renovate Bot
008c972919 build: update webpack to version 4.44.1 2020-07-31 09:56:41 +02:00
Renovate Bot
36668a36a7 build: update rxjs to version 6.6.2 2020-07-31 09:52:10 +02:00
Renovate Bot
8450e07189 build: update angular packages 2020-07-29 10:15:08 +02:00
Renovate Bot
9602237e0b build: update webpack to version 4.44.0 2020-07-25 11:10:35 +02:00
Keen Yee Liau
fa9136a971 build: minor fixes for google3 sync
This commit makes a few minor changes to enable syncing the CLI repository
into google3.

1. mark pkg_tar and pkg_npm as external
2. remove dependencies (marked as comment) which are stale in google3
3. remove TS files generated from JSON schema in BUILD files since these
   files are compiled and added to the g3 codebase at sync time
4. Some minor typing changes
5. Remove duplicate licenses
6. mark dependencies which are not available in g3 as external
7. Immediately type the result of JSON.parse() as required by g3 linter.
   Otherwise, the type defaults to `any`.
2020-07-24 22:52:22 +02:00
Alan Agius
05588fcee1 refactor: clean up unused code and imports 2020-07-24 08:01:52 +02:00
Renovate Bot
f396ba5f4f build: update angular packages 2020-07-23 09:58:11 +02:00
Alan Agius
a85ba990eb refactor: clean up several files
Most of these changes are requires for TS 4 update
2020-07-22 12:56:34 +01:00
Renovate Bot
233d701c7a build: update angular packages 2020-07-17 12:17:24 +01:00
Renovate Bot
c7b8cb88ff build: update typescript to version 3.9.7 2020-07-17 09:25:53 +01:00
Renovate Bot
fe91f3acd1 build: update angular packages 2020-07-15 12:28:34 -04:00
Renovate Bot
d902219ca0 build: update enhanced-resolve to version 4.3.0 2020-07-15 12:21:32 -04:00
Alan Agius
6ac000f728 fix(@ngtools/webpack): don't elide used imports for transformed ShorthandPropertyAssignment
NGTSC, will transform `ShorthandPropertyAssignment` to `PropertyAssignment`, with this change we handle such cases and retain the import which previously was dropped.

Closes #18149 and closes #17347
2020-07-06 19:29:18 +02:00
Renovate Bot
0e731196e0 build: update typescript to version 3.9.6 2020-07-03 09:33:06 +02:00
Charles Lyding
1396ed4533 fix(@ngtools/webpack): add ngcc initial run check
This change performs a ngcc run check to determine if an initial execution is required. If a run hash file exists that matches the current package manager lock file and the project's tsconfig, then an initial ngcc run has already been performed.
By limiting the need to spawn and execute ngcc in another process on each build, the total build time can be reduced on subsequent builds.
2020-07-02 14:47:38 +02:00
Renovate Bot
51a159d1c9 build: update rxjs to version 6.6.0 2020-07-02 11:00:00 +02:00
Alan Agius
6670af2d33 fix(@ngtools/webpack): only process dependent packages with NGCC
With this change we consume the change in https://github.com/angular/angular/pull/37075 where the NGCC now exposes a new option `--use-program-dependencies`, to only process packages which are part of the TypeScript program.

From the initial benchmarking the time taken for NGCC to process that dependencies needed for an `ng new` application went down by 36% from 10526ms to 6708ms.
2020-07-01 11:27:50 -07:00
Renovate Bot
682052a953 build: update angular packages 2020-07-01 14:02:27 +01:00
Renovate Bot
c7006dd629 build: update angular packages 2020-06-29 11:08:31 +01:00
Renovate Bot
4632a53b4c build: update angular packages 2020-06-26 11:23:21 +01:00
Renovate Bot
87664af9a5 build: update enhanced-resolve to version 4.2.0 2020-06-16 09:34:58 +02:00
Charles Lyding
0a0be3b37b refactor(@ngtools/webpack): integrate compiler-cli Angular decorator downlevel transformer
As of 10.0.0, the `@angular/compiler-cli` package provides a TypeScript transformer to downlevel Angular decorators.  This change switches the tooling webpack plugin from using an internal variant of the transformer to the new one within the compiler-cli.  For details on why this type of transformation is needed, please see: 401ef71ae5
2020-06-15 15:21:09 -07:00
Charles Lyding
e7e234963d build: update Angular to 10.0.0-rc.6 2020-06-15 15:21:09 -07:00
Renovate Bot
c1e1c8ba62 build: update angular packages 2020-06-12 10:25:11 +02:00
Renovate Bot
d62a6ec5ed build: update angular packages 2020-06-11 09:23:38 +02:00
Alan Agius
1f04bf7c93 refactor: remove path mappings from NgccProcessor
Path mappings are now inferred from the provided `tsconfig.json`, thus it's now redundant to provide them.
2020-06-10 19:46:51 +01:00
Renovate Bot
5e7e48bb9b build: update angular packages 2020-06-10 10:20:06 +01:00
Alan Agius
1403db27d2 build: update to TypeScript 3.9.5 2020-06-09 11:36:29 +01:00
Renovate Bot
19c1e8f7f1 build: update angular packages 2020-06-02 13:45:57 -04:00
Renovate Bot
c427b47a76 build: update angular packages 2020-05-22 09:53:41 +02:00
Renovate Bot
9423a9e5e1 build: update angular packages 2020-05-20 11:25:49 +01:00
Renovate Bot
0acae781bf build: update typescript to version 3.9.3 2020-05-20 10:01:30 +01:00
Alan Agius
ad471a9cd3 build: update to TypeScript 3.9 2020-05-18 11:35:00 -07:00
Charles Lyding
fbc8f438a2 test: revive legacy unit test script
This provides simplified support for running unit tests locally while the bazel setup is improved.
2020-05-18 19:30:03 +01:00
Renovate Bot
ca89e844ce build: update angular packages 2020-05-15 14:45:57 +01:00
Alan Agius
e8e832e5a8 fix(@ngtools/webpack): getCanonicalFileName should return FS compatible paths
Unlike TSC which has it's own mechanism the resolve and join paths in POSIX format, NGTSC heavily relies onNode.JS `fs` and `path` modules. This prevents `Path` usage because in Windows `path.resolve` will causes an absolute path to be resolved or joined incorrectly.  Example:  `/D/MyPath/MyProject` -> `D:/d/mypath/myproject`.

With this change we change the `getCanonicalFileName` method to return FS compatible paths.
2020-05-12 14:01:35 -04:00
Renovate Bot
b030c9c80d build: update angular packages 2020-05-11 08:08:04 -04:00
Alan Agius
4d4fc099ff build: udate angular packages to version 10 2020-05-07 10:38:22 -07:00
Alan Agius
793f6caf8a fix(@ngtools/webpack): don't emit unused file warning for.ngtypecheck.ts
`.ngtypecheck.ts` files are used by NGTSC for type-checking purposes.

See: https://github.com/angular/angular/pull/36211
2020-05-06 11:41:26 -07:00
Charles Lyding
013d42430f fix(@ngtools/webpack): only emit import default helper when needed
Previously, the import default TypeScript helper was emitted for every file when in JIT mode.  This was unused code in the majority of cases.  The helper is now emitted only when needed.  For this package that would be when an Angular component decorator's resource URL properties are adjusted to support JIT execution with Webpack.
2020-05-05 10:51:35 -07:00
Alan Agius
51de4f7b16 refactor(@ngtools/webpack): remove deprecated isSupported method
BREAKING CHANGE:
`isSupported` method has been removed from `AngularCompilerPlugin` as it has become redundant with peer dependencies.

Note: this change only effects direct `@ngtools/webpack` users and not the application developers.
2020-05-05 10:50:02 -07:00
Renovate Bot
d008cf2b83 build: update angular packages 2020-05-01 16:26:55 -07:00