kitbagjs / router

A type safe router for vuejs
MIT License
127 stars 1 forks source link

Support file-based routing #192

Open Jogai opened 3 weeks ago

Jogai commented 3 weeks ago

Currently I use vue-router toghether with Unplugin Vue Router. This makes it using routes already easy and painless. If kitbag would support this I could test it out in my current project to see if it has benefits over vue-router.

pleek91 commented 3 weeks ago

@Jogai Thanks for creating an issue and for checking out kitbag router. The unplugin vue router is a cool project. One we're watching closely. We're not apposed to file based routing but for now its not on our immediate roadmap. If we do implement file based routing its likely to have differences from unplugin vue router's implementation. Similarly kitbag router isn't directly compatible with an existing vue router project. Though there are a lot of similarities and our goal is to make migrating from vue router to kitbag router as painless as possible.

I'm curious what features of unplugin vue router you were interested in. Did you want file based routing specifically or were you interested in some of the type safety that it offers? Does it solve some frustration you had with vue router?

Thanks again for you're interest in this project!

Jogai commented 3 weeks ago

As you can see in the readme of uvr, it's improving dx. Aside from that its mostly me being lazy, but also enforcing a neat structure.