Skip to content

Commit 1da18b3

Browse files
committed
chore: update
1 parent 9ec4686 commit 1da18b3

7 files changed

+1177
-881
lines changed

README.md

-2
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,10 @@
3737

3838
- ☁️ Deploy on Netlify, zero-config
3939

40-
4140
<br>
4241

4342
See [Vitesse](https://github.com/antfu/vitesse) for full featureset.
4443

45-
4644
## Dropped Features from [Vitesse](https://github.com/antfu/vitesse)
4745

4846
- ~~i18n~~

README.zh-CN.md

+87-87
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,87 @@
1-
<p align='center'>
2-
<img src='https://user-images.githubusercontent.com/11247099/111864893-a457fd00-899e-11eb-9f05-f4b88987541d.png' alt='Vitesse - Opinionated Vite Starter Template' width='600'/>
3-
</p>
4-
5-
<h6 align='center'>
6-
<a href="https://vitesse-lite.netlify.app/">在线 Demo</a>
7-
</h6>
8-
9-
<h5 align='center'>
10-
<b>轻量版的 <a href="https://github.com/antfu/vitesse">Vitesse</a></b>
11-
</h5>
12-
13-
<br>
14-
15-
<p align='center'>
16-
<a href="https://github.com/antfu/vitesse-lite/blob/main/README.md">English</a> | <b>简体中文</b>
17-
</p>
18-
19-
<br>
20-
21-
## 特性
22-
23-
- ⚡️ [Vue 3](https://github.com/vuejs/core), [Vite 3](https://github.com/vitejs/vite), [pnpm](https://pnpm.io/), [ESBuild](https://github.com/evanw/esbuild) - 就是快!
24-
25-
- 🗂 [基于文件的路由](./src/pages)
26-
27-
- 📦 [组件自动化加载](./src/components)
28-
29-
- 🎨 [UnoCSS](https://github.com/unocss/unocss) - 高性能且极具灵活性的即时原子化 CSS 引擎
30-
31-
- 😃 [各种图标集为你所用](https://github.com/antfu/unocss/tree/main/packages/preset-icons)
32-
33-
- 🔥 使用 [新的 `<script setup>` 语法](https://github.com/vuejs/rfcs/pull/227)
34-
35-
- ✅ 使用 [Vitest](http://vitest.dev/) 进行单元和组件测试
36-
37-
- 🦾 TypeScript, 当然
38-
39-
- ☁️ 零配置部署 Netlify
40-
41-
<br>
42-
43-
完整特性,请查看 [Vitesse](https://github.com/antfu/vitesse)
44-
45-
## [Vitesse](https://github.com/antfu/vitesse) 中删除了以下特性
46-
47-
- ~~i18n~~
48-
- ~~Layouts~~
49-
- ~~SSG~~
50-
- ~~PWA~~
51-
- ~~Markdown~~
52-
53-
## 预配置
54-
55-
### UI 框架
56-
57-
- [UnoCSS](https://github.com/antfu/unocss) - 高性能且极具灵活性的即时原子化 CSS 引擎
58-
59-
### Icons
60-
61-
- [Iconify](https://iconify.design) - 使用任意的图标集,浏览:[🔍Icônes](https://icones.netlify.app/)
62-
- [UnoCSS 的纯 CSS 图标方案](https://github.com/antfu/unocss/tree/main/packages/preset-icons)
63-
64-
### 插件
65-
66-
- [Vue Router](https://github.com/vuejs/vue-router)
67-
- [`unplugin-vue-router`](https://github.com/posva/unplugin-vue-router) - 以文件系统为基础的路由
68-
- [`unplugin-auto-import`](https://github.com/antfu/unplugin-auto-import) - 直接使用 Composition API 等,无需导入
69-
- [`unplugin-vue-components`](https://github.com/antfu/unplugin-vue-components) - 自动加载组件
70-
- [`unplugin-vue-macros`](https://github.com/sxzz/unplugin-vue-macros) - 探索并扩展更多的宏和语法糖到 Vue 中
71-
- [VueUse](https://github.com/antfu/vueuse) - 实用的 Composition API 工具合集
72-
73-
## 现在可以试试!
74-
75-
### GitHub 模板
76-
77-
[使用这个模板创建仓库](https://github.com/antfu/vitesse-lite/generate).
78-
79-
### 克隆到本地
80-
81-
如果您更喜欢使用更干净的 git 历史记录手动执行此操作
82-
83-
```bash
84-
npx degit antfu/vitesse-lite my-vitesse-app
85-
cd my-vitesse-app
86-
pnpm i # 如果你没装过 pnpm, 可以先运行: npm install -g pnpm
87-
```
1+
<p align='center'>
2+
<img src='https://user-images.githubusercontent.com/11247099/111864893-a457fd00-899e-11eb-9f05-f4b88987541d.png' alt='Vitesse - Opinionated Vite Starter Template' width='600'/>
3+
</p>
4+
5+
<h6 align='center'>
6+
<a href="https://vitesse-lite.netlify.app/">在线 Demo</a>
7+
</h6>
8+
9+
<h5 align='center'>
10+
<b>轻量版的 <a href="https://github.com/antfu/vitesse">Vitesse</a></b>
11+
</h5>
12+
13+
<br>
14+
15+
<p align='center'>
16+
<a href="https://github.com/antfu/vitesse-lite/blob/main/README.md">English</a> | <b>简体中文</b>
17+
</p>
18+
19+
<br>
20+
21+
## 特性
22+
23+
- ⚡️ [Vue 3](https://github.com/vuejs/core), [Vite 3](https://github.com/vitejs/vite), [pnpm](https://pnpm.io/), [ESBuild](https://github.com/evanw/esbuild) - 就是快!
24+
25+
- 🗂 [基于文件的路由](./src/pages)
26+
27+
- 📦 [组件自动化加载](./src/components)
28+
29+
- 🎨 [UnoCSS](https://github.com/unocss/unocss) - 高性能且极具灵活性的即时原子化 CSS 引擎
30+
31+
- 😃 [各种图标集为你所用](https://github.com/antfu/unocss/tree/main/packages/preset-icons)
32+
33+
- 🔥 使用 [新的 `<script setup>` 语法](https://github.com/vuejs/rfcs/pull/227)
34+
35+
- ✅ 使用 [Vitest](http://vitest.dev/) 进行单元和组件测试
36+
37+
- 🦾 TypeScript, 当然
38+
39+
- ☁️ 零配置部署 Netlify
40+
41+
<br>
42+
43+
完整特性,请查看 [Vitesse](https://github.com/antfu/vitesse)
44+
45+
## [Vitesse](https://github.com/antfu/vitesse) 中删除了以下特性
46+
47+
- ~~i18n~~
48+
- ~~Layouts~~
49+
- ~~SSG~~
50+
- ~~PWA~~
51+
- ~~Markdown~~
52+
53+
## 预配置
54+
55+
### UI 框架
56+
57+
- [UnoCSS](https://github.com/antfu/unocss) - 高性能且极具灵活性的即时原子化 CSS 引擎
58+
59+
### Icons
60+
61+
- [Iconify](https://iconify.design) - 使用任意的图标集,浏览:[🔍Icônes](https://icones.netlify.app/)
62+
- [UnoCSS 的纯 CSS 图标方案](https://github.com/antfu/unocss/tree/main/packages/preset-icons)
63+
64+
### 插件
65+
66+
- [Vue Router](https://github.com/vuejs/vue-router)
67+
- [`unplugin-vue-router`](https://github.com/posva/unplugin-vue-router) - 以文件系统为基础的路由
68+
- [`unplugin-auto-import`](https://github.com/antfu/unplugin-auto-import) - 直接使用 Composition API 等,无需导入
69+
- [`unplugin-vue-components`](https://github.com/antfu/unplugin-vue-components) - 自动加载组件
70+
- [`unplugin-vue-macros`](https://github.com/sxzz/unplugin-vue-macros) - 探索并扩展更多的宏和语法糖到 Vue 中
71+
- [VueUse](https://github.com/antfu/vueuse) - 实用的 Composition API 工具合集
72+
73+
## 现在可以试试!
74+
75+
### GitHub 模板
76+
77+
[使用这个模板创建仓库](https://github.com/antfu/vitesse-lite/generate).
78+
79+
### 克隆到本地
80+
81+
如果您更喜欢使用更干净的 git 历史记录手动执行此操作
82+
83+
```bash
84+
npx degit antfu/vitesse-lite my-vitesse-app
85+
cd my-vitesse-app
86+
pnpm i # 如果你没装过 pnpm, 可以先运行: npm install -g pnpm
87+
```

eslint.config.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import antfu from '@antfu/eslint-config'
2-
import unocss from '@unocss/eslint-plugin'
32

43
export default antfu(
5-
{},
6-
unocss.configs.flat,
4+
{
5+
unocss: true,
6+
formatters: true,
7+
},
78
)

index.html

+25-23
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
7-
<title>Vitesse Lite</title>
8-
<meta name="description" content="Opinionated Vite Starter Template">
9-
</head>
10-
<body class="font-sans dark:text-white dark:bg-hex-121212">
11-
<div id="app"></div>
12-
<noscript>
13-
<div>Please enable JavaScript to use this application.</div>
14-
</noscript>
15-
<script>
16-
(function() {
17-
const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
18-
const setting = localStorage.getItem('color-schema') || 'auto'
19-
if (setting === 'dark' || (prefersDark && setting !== 'light'))
20-
document.documentElement.classList.toggle('dark', true)
21-
})()
22-
</script>
23-
<script type="module" src="/src/main.ts"></script>
24-
</body>
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
7+
<title>Vitesse Lite</title>
8+
<meta name="description" content="Opinionated Vite Starter Template" />
9+
</head>
10+
<body class="font-sans dark:text-white dark:bg-hex-121212">
11+
<div id="app"></div>
12+
<noscript>
13+
<div>Please enable JavaScript to use this application.</div>
14+
</noscript>
15+
<script>
16+
;(function () {
17+
const prefersDark =
18+
window.matchMedia &&
19+
window.matchMedia('(prefers-color-scheme: dark)').matches
20+
const setting = localStorage.getItem('color-schema') || 'auto'
21+
if (setting === 'dark' || (prefersDark && setting !== 'light'))
22+
document.documentElement.classList.toggle('dark', true)
23+
})()
24+
</script>
25+
<script type="module" src="/src/main.ts"></script>
26+
</body>
2527
</html>

netlify.toml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[build.environment]
2-
NODE_VERSION = "20"
2+
NODE_VERSION = "20"
33

44
[build]
5-
publish = "dist"
6-
command = "pnpm run build"
5+
publish = "dist"
6+
command = "pnpm run build"
77

88
[[redirects]]
9-
from = "/*"
10-
to = "/index.html"
11-
status = 200
9+
from = "/*"
10+
to = "/index.html"
11+
status = 200

package.json

+23-22
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"type": "module",
33
"private": true,
4-
"packageManager": "pnpm@8.10.5",
4+
"packageManager": "pnpm@8.11.0",
55
"scripts": {
66
"build": "vite build",
77
"dev": "vite --port 3333 --open",
@@ -14,34 +14,35 @@
1414
},
1515
"dependencies": {
1616
"@vueuse/core": "^10.6.1",
17-
"vue": "^3.3.8",
17+
"vue": "^3.3.10",
1818
"vue-router": "^4.2.5"
1919
},
2020
"devDependencies": {
21-
"@antfu/eslint-config": "^2.0.0",
22-
"@iconify-json/carbon": "^1.1.21",
23-
"@types/node": "^20.9.2",
24-
"@unocss/eslint-config": "^0.57.6",
25-
"@unocss/eslint-plugin": "^0.57.6",
26-
"@unocss/reset": "^0.57.6",
27-
"@vitejs/plugin-vue": "^4.5.0",
28-
"@vue-macros/volar": "^0.17.3",
29-
"@vue/test-utils": "^2.4.2",
30-
"eslint": "^8.54.0",
31-
"jsdom": "^22.1.0",
32-
"lint-staged": "^15.1.0",
33-
"pnpm": "^8.10.5",
21+
"@antfu/eslint-config": "^2.3.1",
22+
"@iconify-json/carbon": "^1.1.24",
23+
"@types/node": "^20.10.3",
24+
"@unocss/eslint-config": "^0.58.0",
25+
"@unocss/eslint-plugin": "^0.58.0",
26+
"@unocss/reset": "^0.58.0",
27+
"@vitejs/plugin-vue": "^4.5.1",
28+
"@vue-macros/volar": "^0.17.4",
29+
"@vue/test-utils": "^2.4.3",
30+
"eslint": "^8.55.0",
31+
"eslint-plugin-format": "^0.0.1",
32+
"jsdom": "^23.0.1",
33+
"lint-staged": "^15.2.0",
34+
"pnpm": "^8.11.0",
3435
"simple-git-hooks": "^2.9.0",
35-
"taze": "^0.12.0",
36+
"taze": "^0.13.0",
3637
"typescript": "^5.3.2",
37-
"unocss": "^0.57.6",
38-
"unplugin-auto-import": "^0.16.7",
39-
"unplugin-vue-components": "^0.25.2",
38+
"unocss": "^0.58.0",
39+
"unplugin-auto-import": "^0.17.2",
40+
"unplugin-vue-components": "^0.26.0",
4041
"unplugin-vue-macros": "^2.7.0",
4142
"unplugin-vue-router": "^0.7.0",
42-
"vite": "^5.0.0",
43-
"vitest": "^0.34.6",
44-
"vue-tsc": "^1.8.22"
43+
"vite": "^5.0.5",
44+
"vitest": "^1.0.0",
45+
"vue-tsc": "^1.8.24"
4546
},
4647
"simple-git-hooks": {
4748
"pre-commit": "pnpm lint-staged"

0 commit comments

Comments
 (0)