A Vue 3 + Vite 5 mobile application template integrating Vant 4, Pinia 2, and TypeScript, designed as a micro-frontend host for micro-app. Current stable version is 1.5.81. It provides a complete mobile development scaffold with automatic component importing, mock server support, dark mode, and Git hooks. Differentiators: pre-configured for micro-app micro-frontend architecture, opinionated directory structure, and Chinese-friendly documentation. Requires Node >=20.19.0 as per engines field.
npm install af-mobile-client-vue3Verified import paths — ran on the pinned version, not inferred.
Shows how to start development with the template: install dependencies, run dev server, build, and use a Vant button component without explicit import due to auto-import.
Use this package as a starter template by cloning or deriving its repository, then modify for your needs.
Upgrade Node to >=20.19.0 using nvm or other version manager.
Remove micro-app from package.json and delete microApps.ts if not using micro-frontend.
Use components in templates without explicit import; if you need to import manually, ensure auto-import is disabled.
Update references in your derived project to match your actual project name.
Upgrade Node.js to version 20.19.0 or higher (e.g., nvm install 20.19.0 && nvm use 20.19.0)
Run 'pnpm install' to install all dependencies, including Vant, which is a dependency of this template.
Do not import anything from 'af-mobile-client-vue3'; instead use Vant components directly from 'vant' package.
Remove or comment out imports and references to microApps.ts in your router configuration.