-
Notifications
You must be signed in to change notification settings - Fork 189
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
[Vue Rewrite] Enable Typescript Vue Components #1831
[Vue Rewrite] Enable Typescript Vue Components #1831
Conversation
Signed-off-by: Devlin Junker <[email protected]>
Signed-off-by: Devlin Junker <[email protected]>
Signed-off-by: Devlin Junker <[email protected]>
Signed-off-by: Devlin Junker <[email protected]>
Signed-off-by: Devlin Junker <[email protected]>
Signed-off-by: Devlin Junker <[email protected]>
Signed-off-by: Devlin Junker <[email protected]>
Signed-off-by: Devlin Junker <[email protected]>
Signed-off-by: Devlin Junker <[email protected]>
Signed-off-by: Devlin Junker <[email protected]>
Signed-off-by: Devlin Junker <[email protected]>
Signed-off-by: Devlin Junker <[email protected]>
Signed-off-by: Devlin Junker <[email protected]>
Note: vue-class-components is kinda abandonned, using typescript with vue2 makes a better experience and future proof with |
@tcitworld oh dang! thanks for pointing that out! I'm new to the Vue world and thought this was pretty cool to get working - but I'd rather follow future-proof conventions like you mention.
Do you mean just adding typescript/type-checking to the original syntax of the Vue components (i.e. before I converted the Explore component to a class)? e.g.
|
or should I be using I found this guide: https://v2.vuejs.org/v2/guide/typescript.html but that's for Vue 2.... 🤔 still seems applicable though for typescript |
Also found a migration guide from Vue 2 to Vue 3: https://v3-migration.vuejs.org/ that I will try to read and include details from:
|
Seems like we can't use the v4 versions of the libraries until we transition to vue v3... so I didn't update either of those. I did remove the Please review/merge and I will move forward with the |
Signed-off-by: Devlin Junker <[email protected]>
27c743f
to
9565e1d
Compare
Signed-off-by: Devlin Junker <[email protected]>
Signed-off-by: Devlin Junker <[email protected]>
The standard experience with Typescript and Vue 2 isn't terrible, but it's being improved with Vue 2.7 (currently in beta) or with In any case, I would predict keeping the class components wouldn't help at all, glad you switched from it. |
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 working on this, it is highly appreciated :)
currently put some time in on the next two tasks mentioned above
(see these two PRs):
once this PR is merged I can rebase these branches and create PRs against |
Is there anything left to do for this PR then? |
@Grotax i don’t think there is anything left on this one |
@SMillerDev @Grotax you guys ready to approve and merge this PR? |
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.
LGTM
Adding typescript to the build process
@vue/cli-plugin
v5.0.0
Explore
component to Typescript Vue Class with decorator as working examplesee devlinjunker#28 for full work history
TODO Before Merge:
Up Next: