Skip to content

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

Merged
ihym merged 9 commits intoihym:masterfrom
cyrillbrito:master
Jun 20, 2023
Merged

chore: update the project structure to support angular 16#60
ihym merged 9 commits intoihym:masterfrom
cyrillbrito:master

Conversation

@cyrillbrito
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Owner

ihym commented Jun 1, 2023

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

@frankadrian
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown

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