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

chore: update the project structure to support angular 16 #60

Merged
merged 9 commits into from
Jun 20, 2023
Merged

chore: update the project structure to support angular 16 #60

merged 9 commits into from
Jun 20, 2023

Conversation

cyrillbrito
Copy link
Contributor

@cyrillbrito cyrillbrito commented May 19, 2023

Changed the files and structure of the project to be more similar to current angular standards, this will enable ivy engine and thus it will work on angular 16.

  • Removed tslint
  • Updated tsconfig
  • Updated angular.json
  • Moved tests folder
  • Many small changes

BREAKING CHANGE: Requires angular v16 and rxjs v7

fix #59

changed the files and structure of the project to be more similar to current angular standards, this
will enable ivy engine and thus it will work on angular 16

BREAKING CHANGE: Requires angular v16 and rxjs v7

fix #59
@frankadrian
Copy link
Contributor

I found a way to compile the locales to the dist directory using tsc. Will send a PR for this.
I also tested this branch with a project of mine with Angular 16 and it's working fine. Would be great if we can get this PR merged soon.

@ihym
Copy link
Owner

ihym commented Jun 1, 2023

@frankadrian I don't think we can merge without the language-strings working.

@frankadrian
Copy link
Contributor

@ihym I created a proposal to use tsc to compile language-strings here: https://github.com/cyrillbrito/ngx-timeago/pull/1

@cyrillbrito
Copy link
Contributor Author

After merging the @frankadrian PR everything seems to be working alright.
I updated the readme versions table, I wrote that for angular 16 we need the lib. version 3.
@ihym Can you see if everything looks good, if so make it release with version 3

Copy link
Owner

@ihym ihym left a comment

Choose a reason for hiding this comment

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

Thank you guys for the insane effort. Left some comments, I think we are close.
I'll have to migrate the CI process to gh actions in the meantime.

package.json Outdated
"@angular/platform-browser-dynamic": "^16.0.0",
"@angular/router": "^16.0.0",
"bootstrap": "4.5.2",
"ngx-timeago": "file:dist/ngx-timeago",
Copy link
Owner

Choose a reason for hiding this comment

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

I guess this needs to be removed? Why not use ts paths as before?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried using the paths but it was not working as expected since the tsconfig path is not the same as installing a package. The imports on the demo would look different than what people installing the package would have.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think if we add the paths to the demo tsconfig it should work, will prepare a PR for this as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Merged the @frankadrian PR, everything looks good. @ihym pls have a look

"@angular/compiler": "^16.0.0",
"@angular/core": "^16.0.0",
"@angular/forms": "^16.0.0",
"@angular/material": "^16.0.1",
Copy link
Owner

Choose a reason for hiding this comment

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

The demo seems a bit broken. Some small adjustments should do the trick.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I seems to be working for me. Is it having problems on the build or something in runtime? If on the build make sure you build the lib first with the npm run build:lib

Copy link
Owner

Choose a reason for hiding this comment

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

Some stylings seem off.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think some of the bootstrap styles are colliding with the material styles

Copy link
Contributor

Choose a reason for hiding this comment

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

Hey @ihym, here is a PR to align the styling of the demo, please let us know your thoughts.
https://github.com/cyrillbrito/ngx-timeago/pull/2

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Merged the @frankadrian PR, everything looks good. @ihym pls have a look

Choose a reason for hiding this comment

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

Eagerly awaiting to get this merged @ihym :)

@cyrillbrito cyrillbrito requested a review from ihym June 14, 2023 08:36
@ihym ihym merged commit f0ed891 into ihym:master Jun 20, 2023
@ihym
Copy link
Owner

ihym commented Jun 20, 2023

I did a somewhat unorthodox release to move on. The ci setup is heavily outdated.
Let me know if it works, for you.
Thank you all again.

@nielsboogaard
Copy link

I did a somewhat unorthodox release to move on. The ci setup is heavily outdated. Let me know if it works, for you. Thank you all again.

Works fine together with Angular 16 afaiks. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incompatibility with Angular 16
4 participants