-
Notifications
You must be signed in to change notification settings - Fork 85
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
Migrate to vue 3 + vite / vitest / vitepress for building #3565
base: master
Are you sure you want to change the base?
Conversation
d11c189
to
4bfcd72
Compare
3734b23
to
1f52a9d
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
How do we best proceed here? Do we simply push our changes to the components to this branch? Should we work with PRs? |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
d9305c9
to
6533f51
Compare
Are you talking about vue 3 changes? I do not know, do you want to build on top of this or keep the changes separated in your vue 3 branch? If the latter one, then if you push new commits to it (instead of squashing / amending the commit) we could rebase this on top of the vue 3 branch. If you would like to build on top of this, then probably simply pushing is easier. |
6533f51
to
5c9e2c4
Compare
Help is always welcome 🙂 There is still a lot to do for vue3, especially all components that use I am a bit undecided whether to do the vue3 work here or in the vue3 branch. The changes are massive and merging vite with vue3 will increase the amount of changes further. But doing both together also makes a lot of sense, since then we can update all dependencies at once and have everything working at some point. So I tend to to the migration here. Maybe @skjnldsv has some input as well regarding how to proceed best. Vue3 needs to become the default this year anyway, since support for vue2 will be dropped. @susnux I don't have experience with vite/vitepress, so it would be great if you could have a look again at these errrors:
|
5c9e2c4
to
aedb979
Compare
Fully rebased! We now have some typescript files @susnux |
"vue-select": "^4.0.0-beta.6" | ||
}, | ||
"peerDependencies": { | ||
"vue": "^3.2.45" |
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.
vue
should also be in the dependencies section :)
Well, apps with vue 3 can use Especially with https://github.com/nextcloud/webpack-vue-config |
@skjnldsv There is a draft for the required adjustments to the webpack config in nextcloud-libraries/webpack-vue-config#331 and a WIP for moving the Tasks app to vue3 nextcloud/tasks#1971 |
Maybe we should try a tiny app, like |
4845599
to
efe8c00
Compare
Signed-off-by: Raimund Schlüßler <[email protected]>
Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: Raimund Schlüßler <[email protected]>
Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: Raimund Schlüßler <[email protected]>
Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: Raimund Schlüßler <[email protected]>
Signed-off-by: Raimund Schlüßler <[email protected]>
efe8c00
to
a105803
Compare
Signed-off-by: Ferdinand Thiessen <[email protected]>
54fa36f
to
5663c71
Compare
Signed-off-by: Raimund Schlüßler <[email protected]>
Signed-off-by: Raimund Schlüßler <[email protected]>
@susnux Here is what I noticed with the
Since the migration to vite and vitepress creates further complexity, I will work with the |
Btw, lint is also not happy here about the nextcloud/l10n package:
|
This is done on purpose, bring back an import for each component is possible if this is a desired feature.
This is no bug, but can be disabled (keep inlining the CSS), see the vite config flag
Do you have this problem with the latest commits? Then I have to investigate what is failing here.
I got the same, but it works if you run the command twice. I will try to fix this.
I fully understand. I will try to fix the vite issues (or to be more specific the styleguide issues...) and push fixes for vue3 to the vue3 branch instead. |
I don't have a strong opinion here. I guess the import via dist is not really necessary anymore with vite to reduce the bundle size. But not having it creates further migration effort. From my side, both would be fine.
Is there any drawback from inlining it? To me, having it inline feels more natural.
Yes, latest state of the PR. Just look at https://deploy-preview-3565--nextcloud-vue-components.netlify.app/components/NcActions.html for example. The component preview just shows
Interesting. I didn't try running it twice.
👍 Sounds good to me. |
I am currently rebasing this, and it looks good, the most issues are resolved (e.g. the documentation issue). |
@susnux Since the components got migrated to vue 3 completely, and we use vite and vitest already, do you still plan to migrate to vitepress now? |
I think it still makes sense, no? In best case we can drop one bundler (webpack) and just use vite :) |
Based on #2637 and #3529
The migration to vite does only make sense using vue 3 (so the automatic docs generation works).