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

feat: install TypeScript #148

Closed
wants to merge 13 commits into from
Closed

Conversation

charlesfries
Copy link
Contributor

@charlesfries charlesfries commented Aug 7, 2021

  • Install TypeScript
  • Install DefinitelyTyped packages from Ember addon blueprint
  • Install @types/ember-data__model
  • Configure eslint for TS
  • Type AbilitiesService

@charlesfries charlesfries mentioned this pull request Aug 7, 2021
@charlesfries
Copy link
Contributor Author

@minutebase @rlivsey Any interest in this?

@bartocc
Copy link

bartocc commented Oct 21, 2021

I've started adding type definitions for ember-can in our codebase as well.

It would be great to have types for this lib indeed 🤗

ping @Exelord

@Exelord
Copy link
Collaborator

Exelord commented Oct 21, 2021

I know, need that as well :) Ember-can is awaiting a major upgrade soon.

@bartocc
Copy link

bartocc commented Oct 21, 2021

I know, need that as well :) Ember-can is awaiting a major upgrade soon.

is this upgrade already started, or is it about to?

And in parallel, do you want more PRs with type definitions like this one?

@Exelord
Copy link
Collaborator

Exelord commented Nov 26, 2021

It's happening :) some changes just landed. TS will be welcome for upcoming v5

@guidojw
Copy link

guidojw commented Jan 5, 2023

@Exelord Is it still happening? 😋
I am slowly but surely converting our Ember app to TS and this addon is one of the few that doesn't come with types yet.

@Exelord
Copy link
Collaborator

Exelord commented Jan 6, 2023

Unfortunately I don't have enough time to work on it anymore :/ so the progres on next upgrade is on hold.

@esbanarango
Copy link
Collaborator

@Exelord Is there anything we could help with to either merge this PR or move the V5 forward? 🙏

@Exelord
Copy link
Collaborator

Exelord commented Jul 22, 2023

Hey @esbanarango,

As mentioned, currently I do not have time to maintain this package. I am really sorry for that. I would recommend maintaining own fork with changes that are needed for your project taking into account how small this package is.

@acorncom
Copy link

@Exelord are you able to hand over maintenance to others who do have the time? Completely understood that you have other time constraints on your end, yet there's still interest in having a shared add-on that the community uses for this ...

@Exelord
Copy link
Collaborator

Exelord commented Jul 24, 2023

Hi @acorncom,

I have the rights to do it, but I am not the owner of this addon.

@rlivsey would you like to choose a new maintainer or pass ownership to someone?

@RobbieTheWagner
Copy link
Collaborator

@Exelord @rlivsey might I suggest transferring this to adopted-ember-addons?

@mkszepp
Copy link
Contributor

mkszepp commented Mar 10, 2024

@rlivsey would be nice to transfer this addon to adopted-ember-addons or to get a new maintainer, so that the addon can be migrate to TS and addon v2

@Exelord
Copy link
Collaborator

Exelord commented Mar 14, 2024

I cannot move the repo, but as the author is not responding, I will grant maintenance permission.

Who would like to take it over?

@esbanarango
Copy link
Collaborator

@Exelord I can help

@RobbieTheWagner
Copy link
Collaborator

I'm also willing to help. Getting this in would be great 😄

@Exelord
Copy link
Collaborator

Exelord commented Mar 27, 2024

Done. Please sync with each other on next steps :) @RobbieTheWagner @esbanarango

@RobbieTheWagner
Copy link
Collaborator

Thanks @Exelord! @esbanarango do you have the cycles to take a look at getting this ready to merge? I won't have availability for probably a few weeks.

@esbanarango
Copy link
Collaborator

@RobbieTheWagner Yeah, I'll take a look! @charlesfries Let me know once this is ready 🤝

@charlesfries charlesfries changed the title Install ember-cli-typescript, type CanService Install TypeScript Mar 29, 2024
@charlesfries
Copy link
Contributor Author

@esbanarango should be good now

@@ -87,7 +119,9 @@
"prettier": "^2.5.0",
"qunit": "^2.17.2",
"qunit-dom": "^2.0.0",
"sinon": "^12.0.1",
"rimraf": "^5.0.5",
"sinon": "^17.0.1",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Needed to update this to fix a build error:

ERROR in ./node_modules/@sinonjs/fake-timers/src/fake-timers-src.js 104:479-504
Module not found: Error: Can't resolve 'util' in 'C:\Users\xxx\ember-can\node_modules\@sinonjs\fake-timers\src'

@@ -54,11 +57,40 @@
},
"devDependencies": {
"@ember/optional-features": "^2.0.0",
"@ember/test-helpers": "^2.6.0",
"@ember/test-helpers": "^3.3.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Needed to update this to fix a Glint TS error:

node_modules/@glint/environment-ember-loose/-private/dsl/integration-declarations.d.ts:107:16 - error TS2665: Invalid module name in augmentation. Module '@ember/test-helpers' resolves to an untyped module at 'C:/Users/xxx/ember-can/node_modules/@ember/test-helpers/index.js', which cannot be augmented.

@charlesfries charlesfries changed the title Install TypeScript feat: install TypeScript Apr 2, 2024
# Conflicts:
#	package-lock.json
#	package.json
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.

None yet

8 participants