Skip to content

Migration to Vue 3 Overview #264

@onmax

Description

@onmax

I think we can start defining the path of migration and what steps need to be taken towards migrating the codebase to Vue 3.

In this issue we can define the progress and steps we need to take. Not all of the steps are fully necessary but they are nice to have.

There are 3 phases to the project: "Before migrating to Vue 3.0.0", "Switching to Vue 3.0.0" and "Clean up and Vue 3.5.0"

Before migrating to Vue 3.0.0

Switching to Vue 3.0.0

Then:

  1. Test that everything works
  2. Re-test that everything works
  3. Go to step 1

Clean up and enhancements

This section maybe is not necessary

  • Move everything to setup composition api
  • Upgrade Eslint to v9 with Flat config
    • Force the definition of props and emits via types defineProps<{ prop: string[] }>() instead of defineProps({ prop:{ type: Array as PropType<string[]>, required: true })
  • Consume useRouter directly. Remove the useRouter in router.ts
  • Consume nextTick directly. Remove the proxy nextTick.
  • Update to Vue 3.5.0
  • Use useTemplateRef(?)

This list is highly opinionated, but feel free to edit/add/remove items. Once we have a clear path, we can start taking small steps towards Vue 3 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions