Vue MobX Prime ts

Vue 3 project scaffold based on TypeScript 5, MobX & PrimeVue 3, which is inspired by WebCell scaffold.

7
0
Vue

Vue-MobX-Prime-ts

Vue 3 project scaffold based on TypeScript 5, MobX & PrimeVue 3, which is inspired by WebCell scaffold.

CI & CD

Open in GitHub Codespaces
Open in Gitpod

This template should help get you started developing with Vue 3 and Typescript in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.

Knowledge

Extra components

  1. <StockNumber />
  2. <Overlay />
  3. <Image />
  4. <ImageUploader />
  5. <Downloader />

Best practice

  1. Install GitHub apps in your organization or account:

    1. Probot settings: set up Issue labels & Pull Request rules
    2. PR badge: set up Online VS Code editor entries in Pull Request description
  2. Click the Use this template button on the top of this GitHub repository’s home page, then create your own repository in the app-installed namespace above

  3. Click the Open in GitHub codespaces button on the top of ReadMe file, then an online VS Code development environment will be started immediately

  4. Set Vercel variables as Repository secrets, then every commit will get an independent Preview URL

  5. Recommend to add a Notification step in GitHub actions for your Team IM app

  6. Remind the PMs & users of your product to submit Feature/Enhancement requests or Bug reports with Issue forms instead of IM messages or Mobile Phone calls

  7. Collect all these issues into Project kanbans, then create Pull requests & add closes #issue_number into its description for automation

Usage

Project setup

npm i pnpm -g
pnpm i

Compiles and hot-reloads for development

npm start

Compiles and minifies for production

pnpm build

Lints and fixes files

npm test

Recommended IDE Setup

Type Support For .vue Imports in TS

Since TypeScript cannot handle type information for .vue imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don’t really care about component prop types outside of templates. However, if you wish to get actual prop types in .vue imports (for example to get props validation when using manual h(...) calls), you can enable Volar’s .vue type support plugin by running Volar: Switch TS Plugin on/off from VSCode command palette.