-
-
Notifications
You must be signed in to change notification settings - Fork 58
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: add Quasar Framework #208
Conversation
@dominikg done 👍 |
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.
Nice! Looks good to me. Please keep an eye on the #ecosystem-ci channel in Vite Land. We can start tagging you there if there is a red in Quasar before a release.
Just curious, why the build step is different when testing in vite-ecosystem-ci and in the vue-ecosystem-ci here? https://github.com/quasarframework/quasar/blob/933a997b63d148987a61788cd4aa8c25f0eb41f2/package.json#L12
I think I'd need the roles for the mentions. So, here is my Discord handle: AzzimothTR#4420 For vite-ecosystem-ci, we specifically test the Vite plugin for the "framework" parts, such as component auto-loading, SCSS variable injection, etc. For vue-ecosystem-ci, we focus on the Vue UI library part. So, the idea is to build/test only the related parts, to consume less CI resources, and to not get sources of error mixed. But, thanks for being curious about this because I noticed that the test script doesn't work anymore. yarn workspaces automatically link everything locally unlike pnpm which does that only when using the |
i'm not exactly sure what is going on here but the yarn v1 workspace stuff seems to prevent the generated resolutions in I can't be of much help here as i am not familiar with yarn v1 and won't start learning about it now. Please update the branch to latest main too (when i cloned it i got an outdated version with pnpm@7) This might be because you initially forked it before we updated it. |
@dominikg, it respects the resolutions and symlinks the nested modules. But, it probably gets confused due to the pnpm node_modules structure in the resolved module, creating faulty symlinks. This is an example symlink Yarn created: When I removed
|
This has not been an issue in any of the other tests in vite-ecoystem-ci and i'm not sure if i understand you correctly but you can't be suggesting to switch vite to yarn to solve this. fyi @sapphi-red ^ the package.json in vite/types had been added by you. |
I think it's fine with adding But I'm curious about the reason of using yarn v1. Yarn v1 is already frozen and by using |
@dominikg I am not suggesting Vite switch to Yarn, I shared my findings hoping they would help. Even if the @sapphi-red because it works. We plan to migrate to pnpm and use workspaces for the whole repo. But, we are in the middle of significant changes such as migrating our code to ESM and supporting it in userland as well. For the same reason, we don't want to switch to Yarn v3 now, we'll move away from it anyway. I have just given Yarn v3 a try and it didn't work out of the box, some packages didn't resolve correctly, and the migration would take extra effort, which is not worth it at the moment. If we don't have an easy solution to address the problem, I suggest running Quasar tests only with stable releases if possible, until we figure out a solution or migrate to pnpm. |
This is not going to happen. vite repo uses pnpm and that's what we have to use for installation. Curious how this works for you in vue-ecosystem-ci but not in vite? |
That's a good question. @sodatea do you know why Vue using pnpm wasn't an issue in vue-ecosystem-ci for Quasar? Linking the PR for reference vuejs/ecosystem-ci#7 |
Because the vue ecosystem-ci uses a local registry, so the |
I wonder if it makes sense for ecosystem-ci to use the local registry as an opt-in only for some projects. As a flag passed to the test, |
We have migrated from Yarn to pnpm: quasarframework/quasar#16990 |
Great news @yusufkandemir! Let's merge this one and tried it out 👍🏼 |
Hi, Quasar core team member here 👋
Quasar Framework uses Vite in two different Quasar flavors:
Quasar CLI with Vite uses the Vite plugin for Quasar under the hood, so covering the Vite plugin should be a good start. We have quasarframework/quasar#15755 which adds the testing setup, package scripts, etc. that will be run by the Ecosystem CI. We probably do not need to make further changes here if we add tests for Quasar CLI with Vite later, modifying the dedicated package scripts should be enough.
Please let me know if there is anything else we should do, thanks 🙂
Creating it as a draft since the upstream PR is not merged yet, but I wanted to get this out as soon as possible to gather feedback.
A note:
pnpm run test quasar --release 4.3.3
works successfully, butpnpm run test quasar
fails with the following error:Tested with Node v18.16.0, Yarn v1.22.19, MacOS Ventura 13.3.1