uniapp-project-creator
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseWhen to use this skill
适用场景
Use this skill whenever the user wants to:
- Create a new uni-app project from scratch
- Initialize uni-app project structure and configuration files
- Set up development environment for uni-app
- Generate project templates with different configurations
- Configure manifest.json and pages.json files
- Create uni-app pages and components
- Set up uni-app project with HBuilderX or CLI
每当用户有以下需求时,可使用本技能:
- 从零开始创建新的uni-app项目
- 初始化uni-app项目结构与配置文件
- 搭建uni-app开发环境
- 生成不同配置的项目模板
- 配置manifest.json和pages.json文件
- 创建uni-app页面与组件
- 使用HBuilderX或CLI搭建uni-app项目
How to use this skill
使用方法
To create a uni-app project with a single command or via HBuilderX:
-
Identify the project type from the user's request:
- Standard uni-app project → Use Vue 2 or Vue 3 template
- HBuilderX project → Use HBuilderX creation method
- CLI project → Use Vue CLI or official CLI commands
-
Load the appropriate example file from thedirectory:
examples/guide/- - Installation and environment setup
examples/guide/installation.md - - Quick start guide
examples/guide/quick-start.md - - Different project types and templates
examples/guide/project-types.md
-
Load the appropriate template file from thedirectory:
templates/- - Project structure templates
templates/project-templates.md - - CLI command templates
templates/cli-commands.md
-
Follow the specific instructions in those files for project creation, structure, and configuration
-
Generate the project structure with proper files and configurations
Important Notes:
- This skill focuses on uni-app CLI quickstart and HBuilderX creation flows
- Use one command creation when the user wants "一句话创建"
- Ensure Vue 2/Vue 3 template choice matches the user's target stack
要通过单命令或HBuilderX创建uni-app项目:
-
根据用户需求确定项目类型:
- 标准uni-app项目 → 使用Vue 2或Vue 3模板
- HBuilderX项目 → 使用HBuilderX创建方式
- CLI项目 → 使用Vue CLI或官方CLI命令
-
从目录加载对应的示例文件:
examples/guide/- - 安装与环境搭建指南
examples/guide/installation.md - - 快速入门指南
examples/guide/quick-start.md - - 不同项目类型与模板
examples/guide/project-types.md
-
从目录加载对应的模板文件:
templates/- - 项目结构模板
templates/project-templates.md - - CLI命令模板
templates/cli-commands.md
-
按照这些文件中的具体说明完成项目创建、结构搭建与配置
-
生成包含正确文件与配置的项目结构
重要说明:
- 本技能聚焦于uni-app CLI快速启动及HBuilderX创建流程
- 当用户需要“一句话创建”时,使用一键式创建命令
- 确保Vue 2/Vue 3模板选择与用户的目标技术栈匹配
Examples and Templates
示例与模板
Examples
示例
Located in :
examples/guide/- installation.md - Installation guide for uni-app development environment
- quick-start.md - Quick start guide for creating first uni-app project
- project-types.md - Different project types (Vue 2, Vue 3, TypeScript, etc.)
位于目录下:
examples/guide/- installation.md - uni-app开发环境安装指南
- quick-start.md - 创建首个uni-app项目的快速入门指南
- project-types.md - 不同项目类型(Vue 2、Vue 3、TypeScript等)
Templates
模板
Located in :
templates/- project-templates.md - Complete project structure templates
- cli-commands.md - CLI command templates for project creation
位于目录下:
templates/- project-templates.md - 完整项目结构模板
- cli-commands.md - 项目创建的CLI命令模板
API Reference
API参考
This skill focuses on project creation and initialization. For component and API references, see .
uniapp-project-guide本技能聚焦于项目创建与初始化。如需组件及API参考,请查看。
uniapp-project-guideBest Practices
最佳实践
- Choose the right template: Select Vue 2 or Vue 3 based on project requirements
- Configure properly: Set up manifest.json and pages.json correctly
- Organize structure: Follow standard uni-app directory structure
- Use CLI when possible: CLI provides more flexibility than HBuilderX
- Version control: Initialize git repository after project creation
- 选择合适的模板:根据项目需求选择Vue 2或Vue 3
- 正确配置:准确设置manifest.json和pages.json
- 规范结构:遵循标准uni-app目录结构
- 优先使用CLI:CLI比HBuilderX提供更高的灵活性
- 版本控制:项目创建后初始化git仓库
Resources
资源
- Official Documentation: https://uniapp.dcloud.net.cn/quickstart-cli.html
- HBuilderX: https://www.dcloud.io/hbuilderx.html
- Vue CLI: https://cli.vuejs.org/
- uni-app GitHub: https://github.com/dcloudio/uni-app
- 官方文档:https://uniapp.dcloud.net.cn/quickstart-cli.html
- HBuilderX:https://www.dcloud.io/hbuilderx.html
- Vue CLI:https://cli.vuejs.org/
- uni-app GitHub:https://github.com/dcloudio/uni-app
Keywords
关键词
uniapp, uni-app, project creator, project initialization, HBuilderX, Vue CLI, manifest.json, pages.json, uni-app setup, uni-app template, 创建项目, 项目初始化, 快速开始
uniapp, uni-app, project creator, project initialization, HBuilderX, Vue CLI, manifest.json, pages.json, uni-app setup, uni-app template, 创建项目, 项目初始化, 快速开始