Skip to content

Kwanhooo/kunpeng-edu-frontend

Repository files navigation

鲲鹏智能学考 visitors

—— KunPeng Edu

本项目的开发工作起始于:2022 年 7 月 18 日 星期一

📔 自述

2022 © 鲲鹏智能学考 - 次世代辅学系统

Powered by @KunPeng Edu Org.

💻 开发技术

基本

  • TypeScript
  • Less
  • Vue.js @3
  • Vite @3
  • Vue Router @4
  • Vuex @4
  • Axios

代码规范化工具

  • ESLint
  • Prettier
  • Stylelint
  • Commitlint
  • Husky Git Hooks
  • Lint-staged
  • editorconfig

其它开发依赖

  • lodash.clonedeep (深拷贝)
  • spacejs (测量工具)
  • mockjs (模拟数据)
  • mitt (传递)
  • store (localStorage 封装)

🦾 源码

  1. 安装依赖

npm install
  1. 启动服务

npm run serve
  1. 开发

# 注册 Husky Git 钩子
npm run prepare
# 格式化代码
npm run lint
npm run lint:ss:fix
# 提交代码

# 1.添加到暂存区
git add .

# 2.提交代码
  # `type`的允许值详见 commitlint.config.js
  # 示例:git commit -m "feat: 新增动态路由功能"
  # 此时会触发先前注册的钩子,执行代码格式化、代码检查、代码提交等操作
git commit -m <type>[optional scope]: <description>

# 3.推送至远端
git push
  1. 构建

# 预览环境构建(启用Mock服务)
npm run build:preview

# 生产环境构建
npm run build

🔨 部署方案

  1. 开发环境 (env.development)

  • 主机:vercel.com
  • 访问方式:https://kp.0xCAFEBABE.cn
  • 方案:透过**Github自动化构建,部署至Vercel;通过 Nginx 反向代理到Vercel**主机
  1. 生产环境 (env.prod)

🏃 状态

基本状态

GitHub

GitHub package.json dependency version (prod)

Website


开发状态

GitHub package.json version (branch)

GitHub deployments

GitHub branch checks state

GitHub last commit (branch)

GitHub commit activity

GitHub contributors


仓库统计

GitHub language count

GitHub repo size

Lines of code