A Modern Vue 3 Starter Boilerplate based on Vite 6, TypeScript 5, Prettier, Stylelint, ESLint 9, and more.
Category | Technologies |
---|---|
Core | Vue 3, Vue Router 4, Pinia 3 |
Build Tools | Vite 6, TypeScript 5 |
HTTP Client | Axios |
Code Quality | ESLint 9, Prettier, Stylelint |
Git Workflow | Commitlint, Husky |
- 🚀 Modern Architecture: Built with latest frontend technologies
- 📱 Responsive Design: Ready for different screen sizes
- 🛠️ Developer Experience: Comprehensive code quality tools
- 🔒 Git Hooks: Husky + lint-staged for pre-commit validation
- 📦 Auto Import: Components and APIs auto-importing
- 🎨 Iconify Integration: Easily use icons from various icon sets
- 🌐 Development Proxy: Convenient API proxying during development
- 🧩 Modular Structure: Well-organized project structure
- Node.js 22+
- pnpm 10+
# Clone the repository
git clone https://github.com/Jamie-Yang/vue3-vite-boilerplate.git
cd vue3-vite-boilerplate
# Install dependencies
pnpm install
# Start development server
pnpm dev
# Production build
pnpm build
# Test environment build
pnpm build:test
# Pre-production build
pnpm build:pre
# Production build
pnpm build:prod
# Run all linters
pnpm lint
# Run specific linters
pnpm lint:eslint
pnpm lint:prettier
pnpm lint:stylelint
vue3-vite-boilerplate/
├── public/ # Static assets
├── src/
│ ├── api/ # API requests
│ ├── assets/ # Images, fonts, etc.
│ ├── components/ # Reusable components
│ ├── composables/ # Vue 3 composables
│ ├── directives/ # Vue directives
│ ├── router/ # Vue Router configuration
│ │ ├── guard/ # Navigation guards
│ │ └── modules/ # Route modules
│ ├── stores/ # Pinia stores
│ ├── utils/ # Utility functions
│ ├── views/ # Page components
│ ├── App.vue # Root component
│ └── main.ts # Application entry point
├── typings/ # TypeScript declaration files
└── ...config files
This project follows the conventional commit format. Commitlint will help ensure your commit messages meet the format.
Examples:
feat: add new feature
fix: resolve issue with component
docs: update readme
style: format code
refactor: restructure component