🚀 A modern CLI tool to generate Vue 3 project templates with Vite, Ant Design Vue, and TypeScript.
- ⚡️ Vue 3 - Latest Vue.js with Composition API
- 🚀 Vite - Lightning fast build tool
- 🔷 TypeScript - Type-safe development
- 🎨 Ant Design Vue - Enterprise-class UI components
- 🎭 CSS Preprocessors - SCSS or Less support (optional)
- 🏪 Pinia - Modern state management (optional)
- 🗂️ Vue Router - Official routing solution (optional)
- 📦 Auto Import - Automatic component and API imports
- 🔧 ESLint & Prettier - Code quality and formatting
- 📱 Responsive Design - Mobile-first approach
npm install -g create-mvw-template# Create a new Vue project
create-mvw-template my-awesome-app
# Or use npx (no installation required)
npx create-mvw-template my-awesome-app
# Skip interactive prompts (use defaults)
create-mvw-template my-app --skip-promptsThe CLI will guide you through the setup process:
- Project Name - Enter your project name
- CSS Preprocessor - Choose SCSS, Less, or none
- State Management - Include Pinia or not
- Routing - Include Vue Router or not
cd my-awesome-app
npm install
npm run devmy-awesome-app/
├── public/ # Static assets
├── src/
│ ├── components/ # Reusable components
│ ├── views/ # Page components (if Router enabled)
│ ├── router/ # Vue Router config (if Router enabled)
│ ├── stores/ # Pinia stores (if Pinia enabled)
│ ├── style/ # Global styles (if preprocessor selected)
│ ├── App.vue # Root component
│ └── main.ts # Application entry point
├── index.html # HTML template
├── vite.config.ts # Vite configuration
├── tsconfig.json # TypeScript configuration
├── package.json # Project dependencies
└── README.md # Project documentation
In the generated project, you can run:
npm run dev- Start development servernpm run build- Build for productionnpm run preview- Preview production buildnpm run lint- Run ESLintnpm run format- Format code with Prettier
create-mvw-template [project-name] [options]
Options:
-s, --skip-prompts Skip interactive prompts and use defaults
-t, --template <type> Template type (basic, full)
-h, --help Display help information
-V, --version Display version number# Interactive setup
create-mvw-template
# Quick setup with defaults
create-mvw-template my-app --skip-prompts
# Specify project name
create-mvw-template my-awesome-project- Node.js 16.0.0 or higher
- npm, yarn, or pnpm
- Vue 3 with Composition API
- Vite for fast development and building
- TypeScript for type safety
- Ant Design Vue for UI components
- ESLint + Prettier for code quality
- Responsive layout examples
- SCSS/Less: CSS preprocessors for advanced styling
- Vue Router: Client-side routing with example pages
- Pinia: Modern state management with example store
- Icons: Ant Design Icons integration
Contributions are welcome! Please feel free to submit a Pull Request.
MIT © [email protected]
- Initial release
- Vue 3 + Vite + TypeScript template
- Ant Design Vue integration
- Optional CSS preprocessors (SCSS/Less)
- Optional Vue Router
- Optional Pinia state management
- Interactive CLI setup