jhipster-lite icon indicating copy to clipboard operation
jhipster-lite copied to clipboard

Refactoring: vue-core module

Open pascalgrimaud opened this issue 1 year ago • 3 comments

I think we need to rework on the vue-core module and to split between smaller modules.

I think the vue-core module should add:

  • Vue.js with Vite
  • axios
  • vue-router (can be discussed)
  • all important tools like eslint, typescript, vitest + config, etc

It should not add the home page

Then, the home page should be splitted into 2 modules:

  • vue-home-domain, which depends on vue-core
  • for the primary part, which depends on vue-home-domain:
    • vue-home-primary-native, with default App.html, AppVue.vue etc
    • vue-home-primary-bootstrap
    • vue-home-primary-tailwind (for example)
    • etc

Pinia should be in another dedicated module.

Don't hesitate to comment this, if you have better idea.

pascalgrimaud avatar Sep 26 '23 06:09 pascalgrimaud

I want to work on this, but I need more details about vue-home-domain. Could you please explain its purpose?

Regarding vue-router, I suggest making it a separate module, similar to vue-pinia.

abdelfetah18 avatar Sep 28 '23 15:09 abdelfetah18

I need to think more, but for now, the vue-home-domain would be nearly empty, as there is no domain. Or maybe simply a Home.ts which would contains the welcome message.

pascalgrimaud avatar Sep 29 '23 19:09 pascalgrimaud

About vue-router and vue-pinia, yes, it should be in separated modules

pascalgrimaud avatar Sep 29 '23 19:09 pascalgrimaud