-
Notifications
You must be signed in to change notification settings - Fork 485
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
Angular 8 and Angular CLI build infrastructure #622
Conversation
ensure Angular Ivy compatibility
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.
Hey @avatsaev
Thanks for the PR! It would be great to get this in.
A couple of things right off the bat before I look into this further:
- Can you remove the .idea folder?
- Can you restore the readme file, with any additional changes necessary that relate to this PR? Your changes have wiped out all of the installation/usage instructions, and we'd like to keep these
Thanks!
Will do! |
Done, sorry about the readme file, missed it while copying, the instructions are the same, there is nothing to change. |
@stevehobbsdev if you have any questions please let me know, will be happy to help |
Will do @avatsaev. It needs a discussion internally about how we go about this - thanks for your patience. |
@avatsaev could you please tell, when you are merging this PR? |
@Neetesh1 once the maintainers approve it, it's not up to me |
@avatsaev Could you review the conflicts ? Also I think you should mark the conversation as resolved where @stevehobbsdev requested you made changes. After that, this PR will have all checks green and be ready to merge. Thanks! |
@aecz I can't mark anything as resolved here, I just pushed the requested changes and asked for review again. Still waiting |
@avatsaev Can you solve the branch conflicts at least ? |
resolved. |
@stevehobbsdev Is there anything we can do to help get this across the line? This package is currently blocking our upgrade to Ivy, so would love to assist in any way we can. |
Hey @s992 we couldn't wait for this to get reviewed soon enough so we deployed this version of the PR on npm in the meanwhile, been using it for a month or so, works very well, it's under the name of https://www.npmjs.com/package/@avatsaev/angular-jwt I know it's not the best solution, but we had to move forward, if you're not comfortable using the npm package you can clone my repo, checkout the pinging @stevehobbsdev |
Thanks @avatsaev ! |
Thanks for raising this again @avatsaev, and I do apologise for the mishap here. We can bring your changes in and release as a new major version. However, to do that I will need you to undo your changes that switch out the Let me know when that is done 👍 |
@stevehobbsdev done, documents restored, I don't think i've missed anything |
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.
Thank you!
This is great, but there is 49 files changed. Can you summarize what changed? Or any reference what do we need to change to make our lib work? We are facing the same issue |
@avatsaev is best placed to provide that summary. The interface should remain the same when you're actually using the library. |
The lib sources themselves haven't changed (except rxjs v6+ pipes refactor), it's now just wrapped around Angular CLI builder which makes the compiled lib compatible with Angular 9. So the host apps don't need to change anything, just build the lib and ship the v4 and it should be fine. |
This has now been published as v4, thanks again @avatsaev and apologies for the delay in getting this out. |
Hi, is any additional configuration required to use 4.0.0? Thanks |
@ltomes There should be no need for any additional configuration, no. With version 4, you should just be able to do If you have any specific error messages and/or a small project that reproduces the problem, I'd be happy to take a look. |
Hi Steve, thanks for confirming no other changes are required. The joys of updating multiple dependencies at once! |
Changes
This MR introduces the correct way to build modern Angular Libraries by using the Angular CLI build infrastructure.
It also ensures the compatibility with future Angular versions as well as Angular Ivy compatibility.
projects/angular-jwt/
folder contains the library coude sourcesrc
folder contains a mock app for the the librarysrc/app/services/example-http.service.spec.ts
)Running tests:
npm run ng test
There aren't any major changes in the library source code, or any breaking changes.
The compiled library was tested on a large internal project, all unit tests passed, the application compiled to ivy without any errors, and authentication was working correctly wihtout any changes to the host application source code.
References
Checklist