Skip to content

Commit

Permalink
🎉 init: 项目初始化
Browse files Browse the repository at this point in the history
  • Loading branch information
AnyFork committed Jul 20, 2023
1 parent dc86fcc commit 3a026c9
Show file tree
Hide file tree
Showing 18 changed files with 1,023 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#vscode
node_modules
dist

3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
}
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<p align="center">
<img width="144px" src="/public/logo.svg" />
</p>
<h1 align="center">vite-standard-template</h1>
<p align="center">一款简洁,符合通用标准的vite构建的vue项目模板</p>
<p align="center">
<a href="https://npmjs.com/package/vite"><img src="/public/version/vite.svg" alt="vite version"></a>
<a href="https://nodejs.org/en/about/releases/"><img src="/public/version/node.svg" alt="node compatibility"></a>

</p>

# 项目简介
一个基于Vite4.X+Vue3.X+TypeScript+Naive UI+Unocss+Eslint+Prettier+husky+lint-staged+commitlint+commitizen+cz-customizable+conventional-changelog构建的标准的vue项目模板。采用`pnpm`进行依赖管理,`Node`版本为16.17.0
# 项目构建流程

## 项目创建

1 创建项目

```shell
pnpm create vite
```
2 依赖安装
```shell
pnpm install
```
3 项目运行
```shell
pnpm dev
```
13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + Vue + TS</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
25 changes: 25 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "vite-standard-template",
"description": "一个基于Vite4.X+Vue3.X+TypeScript+Naive UI+Unocss+Eslint+Prettier+husky+lint-staged+commitlint+commitizen+cz-customizable+conventional-changelog构建的标准的vue项目模板",
"private": true,
"version": "0.0.1",
"type": "module",
"author": {
"name": "小紫念沁",
"email": "874957743@qq.com"
},
"scripts": {
"dev": "vite",
"build": "vue-tsc && vite build",
"preview": "vite preview"
},
"dependencies": {
"vue": "^3.3.4"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.2.3",
"typescript": "^5.1.6",
"vite": "^4.4.4",
"vue-tsc": "^1.8.5"
}
}
Loading

0 comments on commit 3a026c9

Please sign in to comment.