create-vite-uniapp
A fast CLI for scaffolding production-grade UniApp projects.
973
5
| Install | |
|---|---|
npm install create-vite-uniapp |
|
| Latest Version: | 0.2.2 |
| License: | MIT |
| Last Updated: | Oct 19, 2026 |
| Links: | GitHub · npm |
Maintainer: xiaowithnpm
create-vite-uniapp
一个基于 Vite 的极速 uni-app 项目脚手架工具。旨在提供比官方模板更现代、更轻量、更易扩展的开发体验。
🛠️ 快速开始
# npm
npm create vite-uniapp@latest
# pnpm
pnpm create vite-uniapp
📖 使用指南
直接运行命令并按照提示操作,或指定选项:
# 交互式模式
npm create vite-uniapp@latest
# 指定项目名称
npm create vite-uniapp@latest my-app
# 跳过交互,快速创建
npm create vite-uniapp@latest my-app -y
⚙️ 命令行参数
| 选项 | 简写 | 说明 |
|---|---|---|
--help |
-h |
显示帮助信息并退出 |
--version |
-v |
显示版本号并退出 |
--overwrite |
-f |
强制覆盖已存在的同名目录 |
--yes |
-y |
跳过所有交互提示,使用默认配置 |
--install |
-i |
创建后自动安装依赖 |
--git |
-g |
创建后自动初始化 Git 仓库 |
--install 和 --git 支持 --no-install、--no-git 否定形式。
📁 项目结构
my-app/
├── src/
│ ├── App.vue # 根组件
│ ├── main.ts # 入口文件
│ └── pages/ # 页面目录
│ └── index/
│ └── index.vue
├── index.html # HTML 模板
├── vite.config.ts # Vite 配置
├── tsconfig.json # TypeScript 配置
└── package.json # 项目依赖
🤝 贡献
欢迎提交 Pull Request。
- Fork 本仓库
- 创建特性分支 (
git checkout -b feature/AmazingFeature) - 提交更改 (
git commit -m '添加一些 AmazingFeature') - 推送到分支 (
git push origin feature/AmazingFeature) - 开启 Pull Request
📝 许可证
本项目采用 MIT 许可证。
🙏 致谢
Related Packages
Version History
| Version | Released | License |
|---|---|---|
| 0.2.2 | MIT | |
| 0.2.1 | MIT | |
| 0.2.0 | MIT | |
| 0.0.6 | MIT | |
| 0.0.5 | MIT | |
| 0.0.4 | MIT | |
| 0.0.1 | MIT |