Go to file
dqz 52a0b9761b 配置智能柜锁 2025-03-21 17:00:06 +08:00
.github 初始化 2025-03-05 09:22:29 +08:00
.husky 微信支付 2025-03-17 08:30:57 +08:00
.vscode 配置智能柜锁 2025-03-21 17:00:06 +08:00
public 打包修复 2025-03-11 08:56:34 +08:00
src 配置智能柜锁 2025-03-21 17:00:06 +08:00
tests 初始化 2025-03-05 09:22:29 +08:00
types 微信支付 2025-03-17 08:30:57 +08:00
.editorconfig 初始化 2025-03-05 09:22:29 +08:00
.env 配置智能柜锁 2025-03-21 17:00:06 +08:00
.env.development 初始化 2025-03-05 09:22:29 +08:00
.env.production 打包修复 2025-03-11 08:56:34 +08:00
.env.staging 打包文件 2025-03-08 08:09:31 +08:00
.gitignore .git 2025-03-05 10:19:50 +08:00
.npmrc 初始化 2025-03-05 09:22:29 +08:00
LICENSE 初始化 2025-03-05 09:22:29 +08:00
README.md 初始化 2025-03-05 09:22:29 +08:00
README.zh-CN.md 初始化 2025-03-05 09:22:29 +08:00
eslint.config.js 初始化 2025-03-05 09:22:29 +08:00
index.html 初始化 2025-03-05 09:22:29 +08:00
package.json 初始化 2025-03-05 09:22:29 +08:00
pnpm-lock.yaml 初始化 2025-03-05 09:22:29 +08:00
postcss.config.ts 初始化 2025-03-05 09:22:29 +08:00
project.config.json 初始化 2025-03-05 09:22:29 +08:00
project.private.config.json 初始化 2025-03-05 09:22:29 +08:00
tsconfig.json 初始化 2025-03-05 09:22:29 +08:00
uno.config.ts 初始化 2025-03-05 09:22:29 +08:00
vite.config.ts 微信支付 2025-03-17 08:30:57 +08:00

README.md

logo

Mobile + Vue = MobVue

github release github stars gitee stars

English | 中文

Introduction

MobVue is a well-crafted mobile web app template, built with popular technologies such as Vue3, Vite, TypeScript, and Vant

Notifications

[!NOTE] Powered by love! All source code is free and open-source. If you find it helpful, feel free to give a star to support!

[!TIP] Paid services are officially launched! If you dont want to do it yourself but want to remove TS or other modules, try the lazy package! Click to check it out

Usage

Recommended Environment
  • Latest version of Visual Studio Code
  • Install the recommended plugins in the .vscode/extensions.json file
  • node 20.x or 22+
  • pnpm 9.x or 10+
Local Development
# Install dependencies
pnpm i

# Start the development server
pnpm dev
Build
# Build for the staging environment
pnpm build:staging

# Build for the production environment
pnpm build
Local Preview
# Execute the build command first to generate the dist directory, then run the preview command
pnpm preview
Code Check
# Code linting and formatting
pnpm lint

# Unit tests
pnpm test
Commit Guidelines

feat New feature

fix Bug fix

perf Performance improvement

refactor Code refactoring

docs Documentation and comments

types Type-related changes

test Unit tests related

ci Continuous integration, workflows

revert Revert changes

chore Chores (update dependencies, modify configurations, etc)

Online Previewgithub-pages

Documentation and Tutorialslink

Chinese Repositorygitee

Chat Groupcheck how to join

Donationsbuy a coffee for the author

Releases & Changelogreleases

Features

🔥 Latest Syntax, Configuration, Dependencies

📍 Pure Level 1 Route Design - Clear and Cache-Friendly

📱 Mobile Adaptation px2vw - Also Wide-Screen Friendly

🌐 Browser Compatibility @vitejs/plugin-legacy + autoprefixer + browserslist - Compatible with multiple browsers and lower versions

🧩 Layout System - Configurable

🔒 Permission Control Page Level, Button Level

🌗 Theme Mode Dark Mode

🫧 Embrace Atomic CSS

🔧 Components and API Auto Import on Demand

🔎 Husky + lint-staged + ESLint - Code Standardization

💪🏻 Still TypeScript - Strict Mode with No any

👀 More Features - Route Cache, Defensive Watermark, Grayscale and Colorblind Mode, SVG Loader, VConsole, White Screen Loading Animation, Unit Tests

Tech Stack

Vue3: Vue3 + script setup with the latest Vue3 Composition API

VantA lightweight, customizable Vue UI library for mobile web apps

Pinia: The legendary Vuex5

Vite: Really fast

Vue RouterThe routing system

TypeScriptA superset of JavaScript

pnpmA faster, disk-space-saving package manager

ESlintCode linting and formatting

AxiosSends network requests

UnoCSSA high-performance, flexible atomic CSS engine

Project Preview Image

preview

License

MIT License © 2025-PRESENT pany