失眠认知训练系统

JutarryWu b4ae02da99 init 2 months ago
.husky 873970fccc init 3 months ago
.idea b4ae02da99 init 2 months ago
build 873970fccc init 3 months ago
env 873970fccc init 3 months ago
mock 873970fccc init 3 months ago
plop-templates b4ae02da99 init 2 months ago
public b4ae02da99 init 2 months ago
src b4ae02da99 init 2 months ago
themes b4ae02da99 init 2 months ago
types 873970fccc init 3 months ago
vite b4ae02da99 init 2 months ago
.commitlintrc.js b4ae02da99 init 2 months ago
.env.test b4ae02da99 init 2 months ago
.eslintignore 873970fccc init 3 months ago
.eslintrc-auto-import.json 873970fccc init 3 months ago
.eslintrc.js 873970fccc init 3 months ago
.gitignore 873970fccc init 3 months ago
.lintstagedrc b4ae02da99 init 2 months ago
.node-version b4ae02da99 init 2 months ago
.prettierignore 873970fccc init 3 months ago
.prettierrc.js 873970fccc init 3 months ago
LICENSE 873970fccc init 3 months ago
README.md 873970fccc init 3 months ago
auto-imports.d.ts 873970fccc init 3 months ago
commitlint.config.js 873970fccc init 3 months ago
components.d.ts 07445a923c init 3 months ago
index.html 873970fccc init 3 months ago
package.json 873970fccc init 3 months ago
plopfile.js b4ae02da99 init 2 months ago
pnpm-lock.yaml 873970fccc init 3 months ago
postcss.config.js 873970fccc init 3 months ago
stylelint.config.js b4ae02da99 init 2 months ago
tsconfig.json 873970fccc init 3 months ago
tsconfig.node.json b4ae02da99 init 2 months ago
vite.config.ts 873970fccc init 3 months ago
vite.config.ts.timestamp-1726737794289-d2fd46f7ea0ce.mjs 69294971d3 具体游戏文件优化 2 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 开发中