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

[next] Allow writing components using Typescript and provide type definitions for NcButton #4525

Merged
merged 3 commits into from
Jan 10, 2024

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Sep 14, 2023

☑️ Resolves

Add the Typescript infrastructure to write components using Typescript and migrate a first example component (NcButton) to Typescript. The type definitions are generated and published.

Todo

As discussed previously the legacy naming of our entry points (components vs Components) will lead to a crowded dist directory, as Typescript uses the source naming, but our entry points use the upper case naming.
Maybe we should unify those names, meaning either rename the source folder or the entry points (?)

🏁 Checklist

  • ⛑️ Tests are included or are not applicable
  • 📘 Component documentation has been extended, updated or is not applicable

@susnux susnux added enhancement New feature or request 3. to review Waiting for reviews vue 3 Related to the vue 3 migration labels Sep 14, 2023
src/components/NcButton/NcButton.vue Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
@susnux
Copy link
Contributor Author

susnux commented Sep 14, 2023

BTW currently the vue3 eslint config is a bit outdated, so there is no typescript config as for the vue2 config. So eslint fails currently.

@susnux susnux added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Sep 14, 2023
@susnux susnux force-pushed the feat/next-allow-typescript-components branch from 2daf268 to e06994e Compare September 17, 2023 12:31
@susnux susnux force-pushed the feat/next-allow-typescript-components branch from e06994e to 265abd0 Compare September 25, 2023 15:08
@susnux susnux force-pushed the feat/next-allow-typescript-components branch 3 times, most recently from d14f470 to 1045b48 Compare November 1, 2023 00:58
@susnux susnux added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Nov 1, 2023
@susnux susnux force-pushed the feat/next-allow-typescript-components branch from 1045b48 to ed434f7 Compare November 1, 2023 02:16
@susnux susnux added this to the 9.0.0 next Vue 3 milestone Nov 1, 2023
package.json Outdated Show resolved Hide resolved
@susnux susnux force-pushed the feat/next-allow-typescript-components branch from ed434f7 to f0e9b1d Compare November 1, 2023 13:01
@susnux susnux force-pushed the feat/next-allow-typescript-components branch 2 times, most recently from 0a260b2 to 4f07eb1 Compare November 2, 2023 02:29
@susnux susnux requested a review from Pytal November 27, 2023 13:20
@susnux susnux force-pushed the feat/next-allow-typescript-components branch 3 times, most recently from 35ce4e0 to 36a8003 Compare December 21, 2023 16:50
@susnux susnux force-pushed the feat/next-allow-typescript-components branch from 36a8003 to e673896 Compare December 21, 2023 17:02
@susnux susnux requested a review from skjnldsv December 21, 2023 17:06
@susnux
Copy link
Contributor Author

susnux commented Dec 21, 2023

Rebased and solved some issues after all components were migrated to Vue 3. So I would say this is ready for reviews :)

.eslintrc.js Outdated Show resolved Hide resolved
.eslintrc.js Outdated Show resolved Hide resolved
@susnux susnux force-pushed the feat/next-allow-typescript-components branch from e673896 to 38b500d Compare January 9, 2024 12:29
@susnux susnux requested a review from ShGKme January 9, 2024 12:31
* Fix some minor issues related to stronger typing

Signed-off-by: Ferdinand Thiessen <[email protected]>
@susnux susnux force-pushed the feat/next-allow-typescript-components branch from 38b500d to 770ed08 Compare January 9, 2024 23:58
@susnux susnux enabled auto-merge January 9, 2024 23:58
@susnux susnux merged commit c99d516 into next Jan 10, 2024
15 checks passed
@susnux susnux deleted the feat/next-allow-typescript-components branch January 10, 2024 00:00
@susnux susnux mentioned this pull request Jan 23, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement New feature or request vue 3 Related to the vue 3 migration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants