-
Notifications
You must be signed in to change notification settings - Fork 6.8k
chore: update master to angular version 8 beta #15392
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
Conversation
de62dc5 to
851c0e8
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
851c0e8 to
db71984
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| build:remote --host_java_toolchain=@bazel_tools//tools/jdk:toolchain_hostjdk8 | ||
| build:remote --java_toolchain=@bazel_tools//tools/jdk:toolchain_hostjdk8 | ||
| build:remote --crosstool_top=@bazel_toolchains//configs/ubuntu16_04_clang/1.1/bazel_0.18.0/default:toolchain | ||
| build:remote --crosstool_top=@bazel_toolchains//configs/ubuntu16_04_clang/1.1/bazel_0.22.0/default:toolchain |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe for later: I like the approach in angular/angular of vendoring one file from the bazel team, the filename is versioned with Bazel so it's easy to treat it as a black box, then you just import that file to get all these settings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack, can be a future improvement.
package.json
Outdated
| "@bazel/ibazel": "^0.9.0", | ||
| "@bazel/karma": "0.22.1", | ||
| "@bazel/typescript": "0.22.1", | ||
| "@bazel/jasmine": "0.26.0-beta.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: shouldn't need the beta here, 0.26.0 is released
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
WORKSPACE
Outdated
| name = "npm", | ||
| path = "tools/npm-workspace" | ||
| sha256 = "86ea92217dfd4a84e1e335cc07dfd942b12899796b080492546b947f12c5ab77", | ||
| urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/0.26.0-beta.0/rules_nodejs-0.26.0-beta.0.tar.gz"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: shouldn't need to use beta, 0.26.0 is released
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
devversion
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
package.json
Outdated
| "@angular/platform-browser-dynamic": "^7.2.1", | ||
| "@angular/platform-server": "^7.2.1", | ||
| "@angular/router": "^7.2.1", | ||
| "@angular/bazel": "angular/bazel-builds#8.0.0-beta.5+8f8f9a6", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you quickly elaborate why we need @angular/bazel from the builds repository?
Maybe 8.0.0-beta.6 already includes a particular change that wasn't part of beta.5.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to beta.6 (which wasn't released when I started)
src/BUILD.bazel
Outdated
| "@npm//@angular/animations", | ||
| "@npm//@angular/platform-browser", | ||
| "@npm//dgeni", | ||
| "@npm//dgeni-packages", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically these should go into the dgeni_api_docs rule. Though I understand that this PR is already big enough. I'll make a note on my end if you want to leave it out for this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed. I only had these here for debugging.
src/e2e-app/BUILD.bazel
Outdated
| "@npm//node_modules/@angular/core:bundles/core.umd.js", | ||
| "@npm//node_modules/@angular/forms:bundles/forms.umd.js", | ||
| "@npm//node_modules/@angular/router:bundles/router.umd.js", | ||
| "@npm//node_modules/@angular/platform-browser-dynamic:bundles/platform-browser-dynamic-testing.umd.js", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that just temporary as well? I don't see why we would need -testing bundles here. Maybe add a comment like you did in defaults.bzl for the tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was just being lazy and copied from the testing default. I moved these out into a constant in packages.bzl and added a comment where it's used
| "@rxjs", | ||
| "@npm//@angular/common", | ||
| "@npm//@angular/core", | ||
| "@npm//@angular/forms", # TODO(jelbourn): transitive dep via generated code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For later reference: This is actually expected as we turned of the symbol re-exports (see angular/angular@91b7152).
tools/rxjs/rxjs_shims.js
Outdated
| @@ -0,0 +1,41 @@ | |||
| /** | |||
| * @license | |||
| * Copyright Google Inc. All Rights Reserved. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also just realized this. This license is not in sync with what we usually have in Material. I know that this file is from angular/angular and they don't use Google LLC.. thought just checking if we want to update it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
db71984 to
6aeeb3f
Compare
6aeeb3f to
ac6a23b
Compare
This comment has been minimized.
This comment has been minimized.
ac6a23b to
55c869d
Compare
|
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
josephperrott
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This allows us to cherry-pick @kara's static query updates from the `ivy-2019` branch. This change includes: * Adding missing dependencies for various Angular subpackages * Add umd assets where they are now necessary * Configure bazel to target ES5 output as a workaround for angular/angular#29107 * Updates most npm dependencies to the @npm// workspace * Updates general workspace setup, RBE config, ngcontainer * Update to rxjs 6.4.0 (building from source no longer needed) * Added rxjs_shims for ts_web_test and ts_devserver targets * Removed index.bzl and angular_material_setup_workspace (not needed anymore since material won't be built from source) * Use browser_repositories() from @npm_bazel_karma which have pinned browsers that work on all platforms * Change dgeni processor functions from arrow function to `function` to work around `@npm//di` not supporting arrow functions Co-authored-by: Greg Magolan <gmagolan@gmail.com>
|
A Googler has manually verified that the CLAs look good. (Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.) ℹ️ Googlers: Go here for more info. |
55c869d to
5e072ab
Compare
|
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
|
A Googler has manually verified that the CLAs look good. (Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.) ℹ️ Googlers: Go here for more info. |
|
Correcting googlebot as all authors have CLA on file. |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |


This allows us to cherry-pick @kara's static query updates from the
ivy-2019branch.This change includes:
functiontowork around
@npm//dinot supporting arrow functionscc @gregmagolan