-
Notifications
You must be signed in to change notification settings - Fork 519
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
chore(examples): add example for ng packagr #1902
chore(examples): add example for ng packagr #1902
Conversation
This example should demonstrate the usage of packaging an angular library with the `ng_package` rule from @angular/bazel in combination with the `ts_library`.
b3ace5f
to
8b27aa0
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.
that's interesting, from the description I assumed you were using the
load("@npm//ng-packagr:index.bzl", "ng_packagr")
rule here to leverage the normal tooling Angular developers rely on rather than the custom ng_package
rule used only by Angular internal
/cc @alan-agius4
@alexeagle, I got the same impression. I'd definitely recommend using |
@alan-agius4 I did The steps suggested by the Bazel Angular Docs https://angular.github.io/bazel-builds/src/ng_package/ng_package.html#ng_package So I've used the installed |
I think the Angular team is deprecating the |
It looks like we have an ng-packagr example already here |
@alexeagle It is an example with the architect – I think there should be an example without using the architect as the architect only allows incremental rebuilds per library and not as granular as it should be with bazel. I'm not sure if the packagr is needed for the angular package format or if the same can be achieved with rollup? But I think there should be an example of creating an Angular publishable library (Angular Package Format) with the benefits of incremental builds. |
@jbedard, was also looking to do something similar. |
This is that same for this PR, there is no different in using my-packagr directly via using the architect-cli. |
This seems to be |
Ohh, the title of this PR always confuses me 😓 |
I agree :P |
updated the title to explain - the issue is when we drop |
I was trying |
Yeah given time constraints I think you should stick with @angular/bazel for now. |
@alexeagle, actually it seems that NGRX are moving away from Bazel in favor of NX with ng-packagr. |
This Pull Request has been automatically marked as stale because it has not had any activity for 90 days. It will be closed if no further activity occurs in two weeks. Collaborators can add a "cleanup" or "need: discussion" label to keep it open indefinitely. Thanks for your contributions to rules_nodejs! |
This PR was automatically closed because it went two weeks without a reply since it was labeled "Can Close?" |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
This example should demonstrate the usage of packaging an angular
library with the
ng_package
rule from @angular/bazel in combination with thets_library
rule in combination with the angular plugin.Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information