Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(docs-infra): upgrade @angular/cli to 8.0.0-beta.15, @angular/* to 8.0.0-beta.12, @angular/material to 8.0.0-beta.2 #29926

Closed
wants to merge 10 commits into from

Conversation

gkalpak
Copy link
Member

@gkalpak gkalpak commented Apr 16, 2019

This PR upgrades @angular/{*, material, cli} to current @next versions, enables differential loading, enables some more strict TypeScript checks for angular.io and aligns the config files closer to what the cli would generate today.
See individual commits for more details.

Blocked on #29976.

@gkalpak gkalpak force-pushed the build-aio-upgrade-cli branch from 3924734 to 8c47edb Compare April 16, 2019 14:14
@gkalpak gkalpak changed the title build(docs-infra): upgrade @angular/cli to 8.0.0-beta.14 build(docs-infra): upgrade @angular/cli to 8.0.0-beta.15, @angular/* to 8.0.0-beta.12, @angular/material to 8.0.0-beta.2 Apr 16, 2019
@gkalpak gkalpak force-pushed the build-aio-upgrade-cli branch 2 times, most recently from 097ecd5 to efd0289 Compare April 17, 2019 13:42
@benlesh benlesh added the area: build & ci Related the build and CI infrastructure of the project label Apr 17, 2019
@ngbot ngbot bot added this to the needsTriage milestone Apr 17, 2019
@gkalpak gkalpak force-pushed the build-aio-upgrade-cli branch 3 times, most recently from 346f8a6 to 5d0af5e Compare April 17, 2019 23:33
Copy link
Contributor

@filipesilva filipesilva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also re-enable these tests please? 4d37a06

I know we have already talked about it but wanted to leave a comment here so I don't forget to check :D

gkalpak added a commit to gkalpak/angular that referenced this pull request Apr 18, 2019
In angular#29926, the size of the build artifacts has increased due to turning
on differential loading (which generates an es2015/es5 pair for each JS
resource).

To avoid the preview server's rejecting the build artifacts (as in
[288181][1]), this commit increases the max allowed artifact size from
20MB to 25MB (current artifact size after angular#29926 is ~22MB).

[1]: https://circleci.com/gh/angular/angular/288181
@gkalpak
Copy link
Member Author

gkalpak commented Apr 18, 2019

AFAICT, these tests are not related to the aio app's cli version (which is independent of the version used in docs examples).
I have added a TODO on my list to enable those tests in a subsequent PR, while upgrading the dependencies used in docs examples (including the cli).

@gkalpak gkalpak mentioned this pull request Apr 18, 2019
16 tasks
@gkalpak gkalpak force-pushed the build-aio-upgrade-cli branch 2 times, most recently from bf28bcf to e83ef61 Compare April 18, 2019 16:20
@mary-poppins
Copy link

You can preview bf28bcf at https://pr29926-bf28bcf.ngbuilds.io/.

@mary-poppins
Copy link

You can preview e83ef61 at https://pr29926-e83ef61.ngbuilds.io/.

@gkalpak gkalpak force-pushed the build-aio-upgrade-cli branch from e83ef61 to af27758 Compare April 18, 2019 20:08
gkalpak added 4 commits April 25, 2019 20:05
Now that defferential loading it supported by the cli, remove the
obsolete `ie-polyfills.js` (and associated dependencies).

All polyfills in `ie-polyfills.js` are now included in the
[polyfills-es5][1] bundle, except for `classlist.js`, that is only
needed in order to support `NgClass` on SVG elements, which we don't
use.

[1]: https://github.com/angular/angular-cli/blob/b95933a57/packages/angular_devkit/build_angular/src/angular-cli-files/models/es5-polyfills.js
This commit also changes the `tslint.json` config file to (reasonably
closely) match what the cli would generate for a new app.
…o `ban`

The `no-jasmine-focus` rule has been removed from
`vrsource-tslint-rules` [since version 5.8.0][1] (theoretically;
practically it remained [until version 5.8.2][2]).

This commit removes the non-existent rule (and the obsolete dependency)
and uses tslint's `ban` rule instead (as recommended).

[1]: vrsource/vrsource-tslint-rules@477f622#diff-04c6e90faac2675aa89e2176d2eec7d8R162
[2]: vrsource/vrsource-tslint-rules#13 (comment)
@gkalpak gkalpak force-pushed the build-aio-upgrade-cli branch from e62ebc8 to 488e950 Compare April 25, 2019 17:06
@gkalpak
Copy link
Member Author

gkalpak commented Apr 25, 2019

Thx to @clydin's help, I was able to overcome the error by upgrading browserslist to 4.5.5 (for ^4.0.0 and ^4.5.4 ranges).
So, I have upgraded @angular/cli to 8.0.0-beta.18.

For reference, here are the browserslist versions before the manual update to 4.5.5:

=> Found "browserslist@4.5.4"
info Has been hoisted to "browserslist"
info Reasons this module exists
   - Hoisted from "@angular-devkit#build-angular#caniuse-api#browserslist"
   - Hoisted from "@angular-devkit#build-angular#autoprefixer#browserslist"
=> Found "@angular-devkit/build-angular#browserslist@4.5.5"
info This module exists because "@angular-devkit#build-angular" depends on it.

@mary-poppins
Copy link

You can preview 488e950 at https://pr29926-488e950.ngbuilds.io/.

@AndrewKushnir
Copy link
Contributor

Removing "cleanup" label from this PR after a chat with @gkalpak, so this PR is ready to merge.

@AndrewKushnir AndrewKushnir removed the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label Apr 25, 2019
brandonroberts pushed a commit to brandonroberts/angular that referenced this pull request Apr 25, 2019
brandonroberts pushed a commit to brandonroberts/angular that referenced this pull request Apr 25, 2019
This commit also changes the config files and their layout to
(reasonably closely) match what the cli would generate for a new app.

Related Jira issue: [TOOL-815](https://angular-team.atlassian.net/browse/TOOL-815)

PR Close angular#29926
brandonroberts pushed a commit to brandonroberts/angular that referenced this pull request Apr 25, 2019
Now that defferential loading it supported by the cli, remove the
obsolete `ie-polyfills.js` (and associated dependencies).

All polyfills in `ie-polyfills.js` are now included in the
[polyfills-es5][1] bundle, except for `classlist.js`, that is only
needed in order to support `NgClass` on SVG elements, which we don't
use.

[1]: https://github.com/angular/angular-cli/blob/b95933a57/packages/angular_devkit/build_angular/src/angular-cli-files/models/es5-polyfills.js

PR Close angular#29926
brandonroberts pushed a commit to brandonroberts/angular that referenced this pull request Apr 25, 2019
brandonroberts pushed a commit to brandonroberts/angular that referenced this pull request Apr 25, 2019
…ngular#29926)

This commit also changes the `tslint.json` config file to (reasonably
closely) match what the cli would generate for a new app.

PR Close angular#29926
brandonroberts pushed a commit to brandonroberts/angular that referenced this pull request Apr 25, 2019
…o `ban` (angular#29926)

The `no-jasmine-focus` rule has been removed from
`vrsource-tslint-rules` [since version 5.8.0][1] (theoretically;
practically it remained [until version 5.8.2][2]).

This commit removes the non-existent rule (and the obsolete dependency)
and uses tslint's `ban` rule instead (as recommended).

[1]: vrsource/vrsource-tslint-rules@477f622#diff-04c6e90faac2675aa89e2176d2eec7d8R162
[2]: vrsource/vrsource-tslint-rules#13 (comment)

PR Close angular#29926
@gkalpak gkalpak deleted the build-aio-upgrade-cli branch April 25, 2019 19:35
BioPhoton pushed a commit to BioPhoton/angular that referenced this pull request May 21, 2019
…re robust (angular#29989)

In light of angular#29926, that will change the path of `tsconfig.app.json`,
this commit switches from a hard-coded `tsconfig.app.json` path to
looking it up in `angular.json` (to be more future-proof).

PR Close angular#29989
BioPhoton pushed a commit to BioPhoton/angular that referenced this pull request May 21, 2019
…ver (angular#29976)

In angular#29926, the size of the build artifacts has increased due to turning
on differential loading (which generates an es2015/es5 pair for each JS
resource).

To avoid the preview server's rejecting the build artifacts (as in
[288181][1]), this commit increases the max allowed artifact size from
20MB to 25MB (current artifact size after angular#29926 is ~22MB).

[1]: https://circleci.com/gh/angular/angular/288181

PR Close angular#29976
BioPhoton pushed a commit to BioPhoton/angular that referenced this pull request May 21, 2019
BioPhoton pushed a commit to BioPhoton/angular that referenced this pull request May 21, 2019
BioPhoton pushed a commit to BioPhoton/angular that referenced this pull request May 21, 2019
This commit also changes the config files and their layout to
(reasonably closely) match what the cli would generate for a new app.

Related Jira issue: [TOOL-815](https://angular-team.atlassian.net/browse/TOOL-815)

PR Close angular#29926
BioPhoton pushed a commit to BioPhoton/angular that referenced this pull request May 21, 2019
Now that defferential loading it supported by the cli, remove the
obsolete `ie-polyfills.js` (and associated dependencies).

All polyfills in `ie-polyfills.js` are now included in the
[polyfills-es5][1] bundle, except for `classlist.js`, that is only
needed in order to support `NgClass` on SVG elements, which we don't
use.

[1]: https://github.com/angular/angular-cli/blob/b95933a57/packages/angular_devkit/build_angular/src/angular-cli-files/models/es5-polyfills.js

PR Close angular#29926
BioPhoton pushed a commit to BioPhoton/angular that referenced this pull request May 21, 2019
BioPhoton pushed a commit to BioPhoton/angular that referenced this pull request May 21, 2019
…ngular#29926)

This commit also changes the `tslint.json` config file to (reasonably
closely) match what the cli would generate for a new app.

PR Close angular#29926
BioPhoton pushed a commit to BioPhoton/angular that referenced this pull request May 21, 2019
…o `ban` (angular#29926)

The `no-jasmine-focus` rule has been removed from
`vrsource-tslint-rules` [since version 5.8.0][1] (theoretically;
practically it remained [until version 5.8.2][2]).

This commit removes the non-existent rule (and the obsolete dependency)
and uses tslint's `ban` rule instead (as recommended).

[1]: vrsource/vrsource-tslint-rules@477f622#diff-04c6e90faac2675aa89e2176d2eec7d8R162
[2]: vrsource/vrsource-tslint-rules#13 (comment)

PR Close angular#29926
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker area: build & ci Related the build and CI infrastructure of the project cla: yes effort2: days risk: low target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.