3898 Commits

Author SHA1 Message Date
Alan Agius
d668889fae refactor: remove console logs from analytics
This cause errors to be printed out multiple times
2019-04-02 04:46:36 -07:00
ManfredSteyer
a5364a43c2 feat(@angular-devkit/build-angular): write index.html for differential loading
Currently, the IndexHtmlWebpackPlugin generates the index.html file *during* bundling. However, to support differential loading the builder must do this *after* bundling because only then we know the produced files for ES5, ES2015, etc.
Hence, this extracts the IndexHtmlWebpackPlugin logic to a helper function which can still be called by IndexHtmlWebpackPlugin for use cases not affected by differential loading (e. g. ng serve) as well as directly by the builder.
https://docs.google.com/document/d/13k84oGwrEjwPyAiAjUgaaM7YHJrzYXz7Cbt6CwRp9N4/edit?ts=5c652052
2019-04-02 04:46:15 -07:00
Andriy Pyvovarchuk
50cce668cc refactor: replace deprecated package opn with open 2019-04-01 10:53:12 -07:00
ukrukar
3d86b18d7e fix(@schematics/angular): buildRelativePath handles files in root
Before, if one of the arguments was a file in root (eg "/module")
code would fail with: "" must be an absolute path.
2019-04-01 10:51:24 -07:00
Alan Agius
42ef58295e test: update material version to support ngcc 2019-04-01 02:54:41 -07:00
Alan Agius
c68578bb12 test: disable e2e that are not support by ngcc api 2019-04-01 02:54:41 -07:00
Alan Agius
4595d9c598 build: update angular packages to 8.0.0-beta.10 2019-04-01 02:54:41 -07:00
Alan Agius
28387a79ea test: add e2e test for ivy opt-out 2019-04-01 02:54:41 -07:00
Alan Agius
d2e22e9781 feat(@ngtools/webpack): add NGCC as part of the workflow
When add module is resolved, it will try to convert the module using the `NGCC` API.

NGCC will be run hooked to the compiler during the module resolution, using the Compiler Host methods 'resolveTypeReferenceDirectives' and 'resolveModuleNames'. It will process a single entry for each module and is based on the first match from the Webpack mainFields.

When Ivy is enabled we also append the '_ivy_ngcc' suffixed properties
to the mainFields so that Webpack resolver will resolve ngcc processed
modules first.
2019-04-01 02:54:41 -07:00
Alan Agius
655626c284 refactor(@ngtools/webpack): move interfaces to separate file
This is to avoid circular imports
2019-04-01 02:54:41 -07:00
Alan Agius
f84abfc572 feat(@schematics/angular): remove ivy-ngcc postinstall script from new application 2019-04-01 02:54:41 -07:00
JiaLiPassion
888bb27815 refactor: rename Zone 'BLACK_LISTED_EVENTS' to 'UNPATCHED_EVENTS' 2019-04-01 00:48:24 -07:00
Minko Gechev
9a1f48f990 feat(@schematics/angular): update to codelyzer 5
This PR also updates the hello world sample app and migrates its
`tslint.json` file.
2019-03-31 09:56:19 -07:00
Charles Lyding
cfa1649fdd refactor(@angular/cli): use standard node resolution methods where possible 2019-03-30 18:36:22 -07:00
Minko Gechev
a355e7d693 feat(@schematics/angular): drop es6 from modern polyfills
1. Remove imports of es6 polyfills introduced by the CLI.
2. Refactor the migrations for version 8 by moving the codelyzer and
polyfill transforms into different files.

The PR drops all `core-js/es6` polyfills that we've introduced with the
CLI, except the commented ones. We do not remove commented imports,
since they are not part of the internal es6 polyfills.

The migration automatically drops the
associated comments with the removed imports since they are part of the node - under its
`jsDoc` property.
2019-03-29 18:06:01 -07:00
Charles Lyding
36d78debdb fix(@angular-devkit/build-angular): ensure correct dev server path with public host option
If a custom path is provided the webpack dev server client drops the sockjs-node segment. This adds it back so that behavior is consistent when using a custom URL path.

Fixes #13627
2019-03-29 16:36:50 -07:00
Renovate Bot
1a484c368f build: update @angular/animations to version 2019-03-29 16:19:59 -07:00
Alan
7915a582cf fix(@ngtools/webpack): changes in non module code are not picked up when using barrel files
Fixes #13975
2019-03-29 14:47:03 -07:00
Alan
871eb69c3b fix(@ngtools/webpack): replace resources should return class node when modified
This is also the root cause of spec large fail occasionally as we keep checking the child class nodes
2019-03-29 14:45:06 -07:00
Alan
54d2be9497 fix(@ngtools/webpack): don't invalidate cache after first run
At the moment, since there are no old files in the compilation it will cause all source files to be invalidate after the first run. This shouldn't be done as it will slow down the 2nd recompilation.
2019-03-29 14:45:06 -07:00
Filipe Silva
27a84a8287 ci: add ivy track for all prs 2019-03-29 14:39:48 -07:00
Filipe Silva
8d82e9812d refactor(@ngtools/webpack): simplify a call using await 2019-03-29 14:39:48 -07:00
Filipe Silva
55a86c99ab test: test lazy-loading syntax for VE and Ivy 2019-03-29 14:39:48 -07:00
Filipe Silva
8e3e755995 feat(@angular-devkit/build-angular): add experimentalImportFactories option 2019-03-29 14:39:48 -07:00
Filipe Silva
bc7da5d076 feat(@ngtools/webpack): support import syntax for loadChildren with ViewEngine
This feature ONLY matches the format below:
```
loadChildren: () => import('IMPORT_STRING').then(m => m.EXPORT_NAME)
```

It will not match nor alter variations, for instance:
- not using arrow functions
- not using `m` as the module argument
- using `await` instead of `then`
- using a default export (https://github.com/angular/angular/issues/11402)

The only parts that can change are the ones in caps: IMPORT_STRING and EXPORT_NAME.
2019-03-29 14:39:48 -07:00
Filipe Silva
b54a9379a6 feat(@ngtools/webpack): add option to control lazy route discovery 2019-03-29 14:39:48 -07:00
Charles Lyding
7e9297b64d refactor(@angular-devkit/build-ng-packagr): cleanup experimental architect API 2019-03-29 14:37:46 -07:00
Charles Lyding
ba21c855c0 refactor(@angular-devkit/build-angular): cleanup stable architect API builder file names 2019-03-29 14:37:35 -07:00
Charles Lyding
dd058a2cc3 refactor(@angular-devkit/build-angular): remove experimental architect builders 2019-03-29 14:37:35 -07:00
Charles Lyding
1327ee3ec9 test(@angular-devkit/build-angular): update service worker browser tests to stable API 2019-03-29 14:37:35 -07:00
Charles Lyding
61717b7c27 test(@angular-devkit/build-angular): update svg browser test to stable API 2019-03-29 14:37:35 -07:00
Alan Agius
ee337c025f docs: add breaking changes to changelog 2019-03-29 14:37:03 -07:00
Renovate Bot
f8fe4b0ee8 build: update @angular/animations to version 2019-03-28 13:29:01 -07:00
Hans Larsen
20103a35d6 fix(@angular-devkit/build-angular): fix countOccurences
And add testing for it.
2019-03-28 13:28:41 -07:00
Hans Larsen
600b0218fd feat(@angular/cli): add tracking for command duration 2019-03-28 13:28:41 -07:00
Hans Larsen
2ffbdfa86a build: add a validation script for the analytics.md tables
Also added enums to update when changing dimensions.
2019-03-28 13:28:41 -07:00
Hans Larsen
55471770db refactor: use dimensions for some values instead of metrics
This is after a discussion with someone internal. Metrics are good
for sums but not for comparisons and search/filtering.
2019-03-28 13:28:41 -07:00
Hans Larsen
00fb4cea4f feat(@angular-devkit/build-angular): use builder name for category
So we can differentiate between dev-server, browser, karma, etc.
2019-03-28 13:28:41 -07:00
Hans Larsen
1f9f92ed76 build: dont tar private packages
They cannot be installed anyway.
2019-03-28 13:28:41 -07:00
Hans Larsen
a2ff62e2b0 feat(@angular-devkit/build-angular): add analytics for build
Add a few metrics that we want to capture in the build.
2019-03-28 13:28:41 -07:00
Hans Larsen
d25fb89078 feat(@angular-devkit/architect): add analytics to builder context
It should be NoopAnalytics if no analytics are supported.
2019-03-28 13:28:41 -07:00
Hans Larsen
ecd25a7131 refactor(@angular/cli): remove dimension 20
We need it for errors in build.
2019-03-28 13:28:41 -07:00
Hans Larsen
e9ee58a89e refactor(@angular/cli): move analytics constants to devkit core
They need to be shared with builders and schematics.
2019-03-28 13:28:41 -07:00
Charles Lyding
bf52b26219 fix(@angular-devkit/core): correct workspace discovery 2019-03-27 16:33:39 -07:00
Charles Lyding
4a8022ea00 fix(@angular-devkit/architect): ensure workspaceRoot is actually set to workspaceRoot 2019-03-27 16:33:39 -07:00
Charles Lyding
7b1bb478b5 fix(@angular-devkit/build-angular): use package import for build-webpack in server builder 2019-03-27 16:33:39 -07:00
Charles Lyding
e41e10d313 feat(@angular/cli): support stable architect API 2019-03-27 16:33:39 -07:00
Keen Yee Liau
c1e7c2b969 release: v8.0.0-beta.10 v8.0.0-beta.10 2019-03-27 12:32:10 -07:00
Minko Gechev
4b89fe21f4 feat(@schematics/angular): tslint migration for 8
Migration of the `tslint.json` and `package.json` files required by the refactoring of
codelyzer. For more information check this PR
https://github.com/mgechev/codelyzer/pull/754.
2019-03-27 12:24:21 -07:00
Renovate Bot
688ed6aca9 build: update zone.js to version ^0.9.0 2019-03-27 12:23:59 -07:00