失眠认知训练系统(北6项目)

JutarryWu c1be550a2b 新增图片 10 months ago
.husky 873970fccc init 10 months ago
build 873970fccc init 10 months ago
env 873970fccc init 10 months ago
mock 873970fccc init 10 months ago
public 873970fccc init 10 months ago
src c1be550a2b 新增图片 10 months ago
types 873970fccc init 10 months ago
.eslintignore 873970fccc init 10 months ago
.eslintrc-auto-import.json 873970fccc init 10 months ago
.eslintrc.js 873970fccc init 10 months ago
.gitignore 873970fccc init 10 months ago
.prettierignore 873970fccc init 10 months ago
.prettierrc.js 873970fccc init 10 months ago
LICENSE 873970fccc init 10 months ago
README.md 873970fccc init 10 months ago
auto-imports.d.ts 873970fccc init 10 months ago
commitlint.config.js 873970fccc init 10 months ago
components.d.ts 07445a923c init 10 months ago
index.html 873970fccc init 10 months ago
package.json 873970fccc init 10 months ago
pnpm-lock.yaml 873970fccc init 10 months ago
postcss.config.js 873970fccc init 10 months ago
tsconfig.json 873970fccc init 10 months ago
vite.config.ts 873970fccc init 10 months ago

README.md

基于 Vue3.4 + Typescript + Vite5 + vant4 + pinia + vue-router + unoCss

步骤

  1. 安装依赖

    pnpm install
    
  2. 启动

    # 开发环境
    pnpm dev
    # 测试环境
    serve:staging
    
  3. 构建

    pnpm run build
    

完成进度

  • husky & .eslintrc - 代码规范
  • unocss(使用样式预算、属性模式预设) & .prettierrc & postcss-px-to-viewport(多设计尺寸) - 样式相关
  • unplugin-icons 图标功能
  • unplugin-auto-import & unplugin-auto-vconsole 自动导入方法、组件(一些 vant 组件或者 vue3、pinia、router 等引入还是很方便的,但不可滥用)
  • mock - 请求数据模拟
  • pinia - store 全局状态管理 - 持久化等
  • axios - http 请求
  • router 路由权限等一系列基础用法
  • 简单的登入登出
  • tabbar
  • hook (加载列表示例)
  • 组件

Git 贡献提交规范

  • 这里遵循 vue 规范 (Angular)

    • feat 增加新功能
    • fix 修复问题/BUG
    • style 代码风格相关无影响运行结果的
    • perf 优化/性能提升
    • refactor 重构
    • revert 撤销修改
    • test 测试相关
    • docs 文档/注释
    • chore 依赖更新/脚手架配置修改等
    • workflow 工作流改进
    • ci 持续集成
    • types 类型定义文件更改
    • wip 开发中