# uni-wot **Repository Path**: zimo493/uni-wot ## Basic Information - **Project Name**: uni-wot - **Description**: uni-app、Vue3、TypeScript、Setup、Wot Design Uni 项目模板 - **Primary Language**: TypeScript - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-08-28 - **Last Updated**: 2025-03-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: Vue, uni-app, vite, TypeScript ## README ## 项目简介 当前仓库为 `uni`、`vue3`、`typescript`、`Wot Design Uni` 项目模板。 ## 技术栈 - 前端框架:[uni-app](https://uniapp.dcloud.net.cn) (Vue3 + TS + Setup) - 状态管理:[pinia](https://pinia.vuejs.org/zh) - 组件库:[Wot Design Uni](https://wot-design-uni.pages.dev) ## 运行程序 1. 安装依赖 ```shell # npm npm i --registry=https://registry.npmmirror.com # pnpm pnpm i --registry=https://registry.npmmirror.com ``` 2. 运行程序 ```shell # H5端 npm run dev:h5 # 微信小程序端 npm run dev:mp-weixin # 微信开发者工具导入 `/dist/dev/mp-weixin` 目录 # App端 需 HbuilderX 工具,运行 - 运行到手机或模拟器 ``` ## 工程结构解析 ```text ├── .husky # Git Hooks ├── .idea # WebStorm 配置 ├── .vscode # VS Code 插件 + 设置 ├── dist # 打包文件夹(可删除重新打包) ├── src # 源代码 │ ├── api # 所有接口请求 │ ├── components # 全局组件 │ └── pages # 主包页面 │ ├── index # 首页 │ ├── login # 登录页 │ └── my # 我的 │ └── static # 存放应用引用的本地静态资源的目录 │ ├── images # 普通图片 │ └── tabs # tabBar 图片 │ └── stores # 全局 pinia store │ ├── modules # 模块 │ └── index.ts # store 入口 │ └── styles # 全局样式 │ ├── app.scss # 公共样式 │ └── fonts.scss # 字体图标 │ └── types # 类型声明文件 │ └── component.d.ts # 全局组件类型声明 │ └── typings # 自动导入类型声明文件 (可删除重新运行项目自动生成) │ └── auto-imports.d.ts # 全局函数方法自动导入类型声明 │ ├── utils # 全局方法 │ ├── App.vue # 入口页面 │ ├── main.ts # Vue初始化入口文件 │ ├── manifest.json # 配置appid等打包信息 │ └── pages.json # 配置页面路由等页面类信息 ├── .editorconfig # editorconfig 配置 ├── .eslintrc-auto-import.json # 自动导入配置 ├── .gitignore # git 忽略文件 ├── .prettierignore # prettier 忽略文件 ├── .prettierrc.yaml # prettier 配置 ├── .stylelintignore # stylelint 忽略文件 ├── .stylelintrc.json # stylelint 配置 ├── commitlint.config.cjs # commitlint 配置 ├── eslint.config.mjs # eslint 配置 ├── index.html # H5 端首页 ├── package.json # package.json 依赖 ├── package-lock.yaml # package.json 依赖锁定文件 ├── README.md # 说明文档 ├── tsconfig.json # typescript 配置 ├── unocss.config.ts # unocss 配置 └── vite.config.ts # vite 配置 ``` ## 提交规范 ### 执行 `pnpm commit` 唤起 git commit 交互,根据提示完成信息的输入和选择。 ```shell PS E:\Code\uni-wot> pnpm commit > uni-wot@0.0.0 commit E:\Code\uni-wot > git-cz cz-cli@4.3.1, cz-git@1.11.1 ? 选择你要提交的类型 : 文档: 📝 文档变更 ? 选择一个提交范围(可选): empty ? 填写简短精炼的变更描述 : [Infinity more chars allowed] 更新项目介绍和提交规范 ? 填写更加详细的变更描述(可选)。使用 "|" 换行 : ? 选择关联issue前缀(可选): skip ###--------------------------------------------------------### docs: :memo: 更新项目介绍和提交规范 ###--------------------------------------------------------### ? 是否提交或修改commit ? Yes Running pre-commit hook... > uni-wot@0.0.0 lint:lint-staged E:\Code\uni-wot > lint-staged ✔ Backed up original state in git stash (7e08057) ✔ Running tasks for staged files... ✔ Applying modifications from tasks... ✔ Cleaning up temporary files... [main e190d89] docs: :memo: 更新项目介绍和提交规范 1 file changed, 14 insertions(+), 3 deletions(-) PS E:\Code\uni-wot> ```