refactor: dropping support for Vue docgen (components doc will be deleted)
refactor: dropping existing e2e test as they were used
Notes
A few observations during the migrations:
The tests show a lot of warnings from Bootstrap Vue. Those are most likely to disappear when upgrade to Vue 3. In the meantime, start the test with the --silent flag hides them.
A lot of module mocks have been reviewed to import the original module.
For retro-compatibility, Vite is configured to resolve imports even with non-js extensions: .mjs, .js, .mts, .ts, .jsx, .tsx, .json and .vue. This is now considered a bad-practice and shall be progressively migrated.
As opposed to Webpack, Vite doesn't provide the browser version of path by default. Hence we added path-browserify among the dependencies.
The @use 'sass:math' import is now used by all SCSS files. We will progressively migrate to explicit inclusion of this library along with the @/utils/settings.scss.
Backend is proxified through a more restrictive ^/(settings|me|api).? regex. If new endpoint appears, we need to add them to vite.config.js.
PR Description
This PR migrates away from Vue CLI to Vite. This is also a complete refactoring of the test with Vitest.
Change
Notes
A few observations during the migrations:
--silent
flag hides them..mjs
,.js
,.mts
,.ts
,.jsx
,.tsx
,.json
and.vue
. This is now considered a bad-practice and shall be progressively migrated.path
by default. Hence we addedpath-browserify
among the dependencies.@use 'sass:math'
import is now used by all SCSS files. We will progressively migrate to explicit inclusion of this library along with the@/utils/settings.scss
.^/(settings|me|api).?
regex. If new endpoint appears, we need to add them tovite.config.js
.