Skip to content

Commit e09d031

Browse files
committed
docs(custom): 修改文档
1 parent 7d74c03 commit e09d031

File tree

2 files changed

+75
-1
lines changed

2 files changed

+75
-1
lines changed

.eslintrc.cjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ module.exports = {
5050
{ js: 'never', jsx: 'never', ts: 'never', tsx: 'never' }
5151
],
5252
// 只允许1个默认导出,关闭,否则不能随意export xxx
53-
// 只允许1个默认导出,关闭,否则不能随意export xxx
5453
'import/prefer-default-export': ['off'],
5554
'no-console': ['off'],
5655
// 'no-unused-vars': ['off'],

README.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# UniApp、Vite、Vue3、Pinia、Unocss 小程序项目模板
2+
3+
# 特色
4+
5+
- ⚡️[uni-app](https://github.com/dcloudio/uni-app), [Vue 3](https://github.com/vuejs/core), [Vite](https://github.com/vitejs/vite), [pnpm](https://pnpm.io/)
6+
7+
- 📦 [组件自动化引入](https://github.com/antfu/unplugin-vue-components)
8+
9+
- 🍍 [使用 Pinia 的状态管理](https://pinia.vuejs.org)
10+
11+
- 🎨 [UnoCSS](https://github.com/unocss/unocss) - 高性能且极具灵活性的即时原子化 CSS 引擎
12+
13+
- 😃 [各种图标集为你所用](https://icon-sets.iconify.design/)
14+
15+
- 🔥 使用 [新的 `<script setup>` 语法](https://github.com/vuejs/rfcs/pull/227)
16+
17+
- 📥 [API 自动加载](https://github.com/antfu/unplugin-auto-import) - 直接使用 Composition API 无需引入
18+
19+
- 🌍 [API 采用模块化自动导入方式](https://blog.csdn.net/qq_43775179/article/details/134811292) 根据demo.js文件设置接口,以API_xxx_method的方式命名,在请求时无需导入 直接使用useRequest()函数返回参数以解构的方式获取,拿到即为写入的接口
20+
21+
## 🍭 安装使用
22+
23+
🍙 获取项目代码
24+
25+
```bash
26+
git clone https://github.com/gitboyzcf/uni-preset-vue3-vite.git
27+
```
28+
29+
🌈 安装依赖
30+
31+
```bash
32+
pnpm install
33+
```
34+
35+
🐥 运行
36+
37+
```bash
38+
pnpm dev:mp-weixin
39+
```
40+
41+
🍁 打包
42+
43+
```bash
44+
pnpm build:mp-weixin
45+
```
46+
47+
🍄 Git 提交
48+
49+
```bash
50+
pnpm cz
51+
```
52+
53+
## 🍣 Git 规范
54+
55+
参考 [vue](https://github.com/vuejs/vue/blob/dev/.github/COMMIT_CONVENTION.md) 规范 ([Angular](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular))
56+
57+
- `✨ feat` 增加新功能
58+
- `🐛 fix` 修复问题/BUG
59+
- `🎉 init` 初始化
60+
- `📝 docs` 文档变更
61+
- `💄 style` 代码格式(不影响代码运行的变动)
62+
- `♻️ refactor` 重构(既不是增加feature,也不是修复bug)
63+
- `⚡️ perf` 性能优化
64+
- `✅ test` 增加测试
65+
- `⏪️ revert` 回退
66+
- `🚀‍ build` 构建过程或辅助工具的变动
67+
- `👷 ci` CI 配置
68+
69+
## 🌯 Git 提交流程
70+
71+
```bash
72+
git add .
73+
74+
pnpm run cz
75+
```

0 commit comments

Comments
 (0)