Skip to content

Vue.js (Vite + TypeScript) generator #43

@mathieusouflis

Description

@mathieusouflis

Problem statement

Vue.js developers have no dot support. Setting up a Vite + Vue 3 + TypeScript project with the right architecture is manual work.

Proposed solution

Implement VueTSGenerator in generators/typescript/vue.go.

  • Name(): "ts-vue"
  • Language(): "typescript"
  • Modules(): ["vue"]

Apply() generates:

  • package.json, tsconfig.json, vite.config.ts
  • src/App.vue, src/main.ts
  • src/components/, src/views/, src/router/, src/stores/ (Pinia)
  • File structure varies by spec.Config.FrontendArchitecture

Commands: new component <name>, new view <name>, new store <name>

Alternatives considered

Use create-vue under the hood. Rejected — same reason as other generators.

Area

Core

Additional context

Uses static composition with TypeScript frontend architecture generators based on spec.Config.FrontendArchitecture. Depends on: TypeScript architecture generators.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions