-
Notifications
You must be signed in to change notification settings - Fork 6.8k
build: build cdk with angular from source #13541
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: build cdk with angular from source #13541
Conversation
* Continues the long-term Bazel goal by fixing the CDK bazel build targets. Also builds the CDK targets with Angular from source. Follow up's will try to make serving, and testing possible.
f66f136
to
1c63012
Compare
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.
This PR should also re-enable these passing targets on CirceCI
http_archive( | ||
name = "angular", | ||
# Temporarily locked down to the angular/angular:bazel branch. This branch includes necessary | ||
# commits that make building from source possible. |
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 there an issue somewhere tracking this?
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.
Not that I know of. I think it's just a WIP branch that includes the new design with rules_angular_dependencies
.
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.
@alexeagle what's the status of the changes on that branch making it to angular master?
|
||
ng_module( | ||
ts_library( |
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 believe that the ng_package
rule only worked with this being an ng_module
, but maybe that is moot now since we can't package the library without ivy anyway
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.
Just checked locally, and seems to work as expected.
* No longer compile with AOT compiler that generates factory files that cannot be packaged into "ng_package"
334f1fc
to
22cbdef
Compare
@jelbourn The CI now builds the CDK npm package. There are a few source map errors coming from SaSS. I will try to resolve those in a follow-up, as well as the warning about the "module metadata" if that works for you. Since the |
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
That works for me. Another approach you could take is to add tags = ["manual"],
to the rule so that something like bazel build ...
won't run it.
Thanks @devversion ! |
* build: build cdk with angular from source * Continues the long-term Bazel goal by fixing the CDK bazel build targets. Also builds the CDK targets with Angular from source. Follow up's will try to make serving, and testing possible. * Build package on CI * No longer compile with AOT compiler that generates factory files that cannot be packaged into "ng_package"
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. |
targets. Also builds the CDK targets with Angular from source.
Follow up's will try to make serving, and testing possible.