-
Notifications
You must be signed in to change notification settings - Fork 66
Convert project to TypeScript #139
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
Convert project to TypeScript #139
Conversation
|
The failing integration-test is because meilisearch/meilisearch-js#688 is not yet released. If you check out meilisearch-js locally and use it by running |
|
🔒 Permission denied Existing reviewers: click here to make bb a reviewer |
|
bors try |
tryMerge conflict. |
8d271e1 to
b98391f
Compare
|
Hello @bb! |
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.
Thanks for this huge work! 😁 We are waiting for the @bidoubiwa's review.
A small change maybe if you have time @bb: could you remove the changes in the CONTRIBUTING.md? It's not related to the typescript work.
bidoubiwa
left a comment
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.
Thanks a lot for this work! I see you took the configuration of meilisearch-js. Can I ask you if you think some things should be improved in the typescript configuration? In order to know on what to work.
I asked you some questions I hope they are relevant
Good point. Sorry for mixing this stuff. I now committed the contributing file from current master on top, so all should be fine again. |
I thought it would be a good idea to have both projects not diverge too much, so I copied some configs from there. I think the config itself is fine. Things to improve in general:
As you can see, it's all not critical to fix but also not a great clean state yet. Does this overview help as a starter? |
curquiza
left a comment
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.
I also realize we have to find a way to activate the "auto-reload/rebuild" for the playgrounds because of this typescript integration, otherwise, it will be tedious to develop with them.
Thanks for your work @bb, there is only a small git conflict (I made the typescript-dev breach up-to-date with master).
Afterward, I'm going to merge your PR. @bidoubiwa will continue your work. She's on vacations right now and has emergency tasks on her todo list before doing this one, but be sure she's looking forward to working on it 😉
And thanks for taking the time to answer our questions and to suggest improvements! 🚀
bidoubiwa
left a comment
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.
Thanks for the amazing work
The disadvantages of the GH web editor. Sorry 😬
|
I just fixed the merge conflict in package.json and modified the new vanilla-js taks to include the build step directly in the Github UI, but it looks like this was not enough. Will check locally now. |
|
I resorted to an entry in the ignore file to make the linter pass with the TypeScript base settings and the new vanilla-js parts. Not perfect, but better than failing checks. |
|
Merging then!! Thanks a lot @bb for all your involvement!! 🎉 |
This is a rough conversion of the project to TypeScript. With rough I mean some usage of
anyhere and there, some ad-hoc type definitions and many eslint rules disabled. This fixes #118 and #121. It also sneaks in the fix for Contributing Docs (same as meilisearch/meilisearch-js#687).Everything should work at least as good as before. It still uses the default export (#122) because the way it is written now, it can be used in another TypeScript project.