切换主题
欢迎来到网页授课端开发文档
项目技术栈
- 框架:TypeScript 4.x + Vue 3.x + Vue Router 4.x + Pinia 2.x
- 构建工具:Vite 3.x
- 包管理器:pnpm(必须)
- HTTP 工具:@neosjs/request
- 代码规范:EditorConfig + Prettier + ESLint + lsLint+ Airbnb js style guide
- Git Hook 工具:husky + lint-staged
- 提交规范:Commitlint
编程风格、插件工具
- unplugin-vue-components - 自动加载组件 (已自动集成到项目)
- unplugin-auto-import - 直接使用 CompositionAPI,无需导入 (已自动集成到项目)
- VueUse - CompositionAPI 版本的 lodash
- pinia-plugin-persistedstate - 数据持久化
- SFC 语法
<script lang="ts" setup></script>
IDE设置
VSCode + Volar (禁用 Vetur) + TypeScript Vue Plugin (Volar).