- ⚡️ Vite 3 - 构建工具(就是快!)
- 🖖 Vue 2 - 渐进式 JavaScript 框架
- 🚦 Vue Router - 官方路由管理器
- 📦 Vuex - 一个专为 Vue.js 应用程序开发的状态管理模式
- 🎨 Scss - CSS 预处理器
- 🔗 Axios - 一个基于 promise 的网络请求库,可以用于浏览器和 node.js
- 🧰 Husky + Lint-Staged - Git Hook 工具
- 🛡️ EditorConfig + ESLint + Prettier + Stylelint + Airbnb JavaScript Style Guide - 代码规范
- 🔨 Commitizen + Commitlint - 提交规范
- 🎉 AutoImport + Components - 自动导入
- 🎈 [Pages] + [Layouts] - 目录路由 + 布局
- ESLint 配置为 eslint-config-standard
- Prettier 配置为 eslint-config-prettier
- Stylelint 配置为 stylelint-config-standard
- npm - 包管理器
- Visual Stuido Code 扩展
Vite3 Vue2 JavaScript Starter Template 需要 Node 版本 >= 14.18
如果您更喜欢使用更干净的 git 历史记录手动执行此操作
# [可选] 如果您使用的是 windows 系统,需要关闭换行符自动转换
git config --global core.autocrlf input
# 克隆
git clone hhttps://github.com/greenhat616/vue2-starter.git
# 打开文件夹
cd vue2-starter
# 安装依赖
pnpm i
使用此模板时,请尝试按照清单正确更新您自己的信息
- 在
LICENSE
中改变作者名 - 在
App.vue
中改变标题 - 在
vite.config.js
更改主机名 - 在
public
目录下改变favicon - 移除
.github
文件夹中包含资助的信息 - 整理 README 并删除路由
只需要执行以下命令就可以在 http://localhost:3000 中看到
## 安装依赖
pnpm install
## 运行
pnpm run dev
## 构建
pnpm run build
Copyright (c) 2022 ElanYoung & a632079