-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Update to Vite #665
Update to Vite #665
Conversation
👷 Deploy request for geoguess2 pending review.Visit the deploys page to approve 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.
Hello,
thanks a lot, this PR will be improve développer experience
Co-authored-by: Bilel Jegham <BilelJegham@users.noreply.github.com>
Merge branch 'master' of https://github.com/GeoGuess/GeoGuess into Ge…
Stryker and Cypress are tested and running, I also merged the latest commits from GeoGuess/GeoGuess |
Co-authored-by: Bilel Jegham <BilelJegham@users.noreply.github.com>
Co-authored-by: Bilel Jegham <BilelJegham@users.noreply.github.com>
Nevermind I think I figured it out, this appears to work? await wrapper.setData({ search: 'Toulouse' });
await wrapper.vm.$nextTick();
expect(wrapper.vm.axios.get).toBeCalledWith('https://photon.komoot.io/api/?q=Toulouse');
await wrapper.vm.$nextTick();
expect(wrapper.exists('#search-input')); |
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.
Seems good for my, just a small rework on vuex modules.
You will see my code suggestion
Kudos, SonarCloud Quality Gate passed! |
Can we get this merged so we can work on Vue 3 |
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.
Hard to check all files.
But I think it's good.
Some issues before merge, I'm making some adjustments :
|
Kudos, SonarCloud Quality Gate passed! |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #665 +/- ##
===========================================
+ Coverage 52.12% 81.84% +29.71%
===========================================
Files 53 54 +1
Lines 752 11223 +10471
Branches 209 324 +115
===========================================
+ Hits 392 9185 +8793
- Misses 328 1999 +1671
- Partials 32 39 +7 ☔ View full report in Codecov by Sentry. |
|
Running |
* Doesn't load past home page * Loads slightly more on home page * Loads a bit more, buttons don't work * Working * Refactor imports * Fully working * Removed Jest as it is not Vite compatible * Update src/lang/index.js Co-authored-by: Bilel Jegham <BilelJegham@users.noreply.github.com> * Reverse trailing commas and version number * Everything but Cypress is working * Merge branch 'master' of https://github.com/GeoGuess/GeoGuess into GeoGuess-master * Fix eslint * Update package.json Co-authored-by: Bilel Jegham <BilelJegham@users.noreply.github.com> * Update package.json Co-authored-by: Bilel Jegham <BilelJegham@users.noreply.github.com> * Vitest not working yet * Vitest working a bit more * Patched jest-google-maps-mock * Update vite.config.js * Vitest almost working * Fixed stryker * Add @ imports back * Forgot some * Update CardRoomMap.spec.js * Update /store/index.js * Merge * fix: package * fix: lint * fix: add coverage test * Fix patch package failure * Fix ESLint with Vitest * Update snapshot? --------- Co-authored-by: Bilel Jegham <BilelJegham@users.noreply.github.com> Co-authored-by: BilelJegham <contact.bileljegham@gmail.com>
Types of Changes
Description
Updated GeoGuess to use Vite instead of the slow and outdated Vue CLI, this has taken build times from 40-50s down to about 1s.
Main changes
VITE_APP_
instead ofVUE_APP_
What's broken
How Has This Been Tested?
Vite has been tested in production, with a built dev server and netlify, some options might not be working.
Sample site with Vite here