Skip to content

Commit 72b559b

Browse files
committed
chore: 添加 example 项目-vue-vite7
1 parent 68a2416 commit 72b559b

File tree

13 files changed

+12029
-11071
lines changed

13 files changed

+12029
-11071
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ import type { Options as WebUpdateNotificationOptions } from '@plugin-web-update
194194
export default {
195195
plugins: ['@plugin-web-update-notification/umijs'],
196196
webUpdateNotification: {
197+
versionType: 'git_commit_hash',
197198
logVersion: true,
198199
checkInterval: 0.5 * 60 * 1000,
199200
notificationProps: {

README.zh-CN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ import type { Options as WebUpdateNotificationOptions } from '@plugin-web-update
195195
export default {
196196
plugins: ['@plugin-web-update-notification/umijs'],
197197
webUpdateNotification: {
198+
versionType: 'git_commit_hash',
198199
logVersion: true,
199200
checkInterval: 0.5 * 60 * 1000,
200201
notificationProps: {

example/vue-vite7/.gitignore

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
.DS_Store
12+
dist
13+
dist-ssr
14+
coverage
15+
*.local
16+
17+
/cypress/videos/
18+
/cypress/screenshots/
19+
20+
# Editor directories and files
21+
.vscode/*
22+
!.vscode/extensions.json
23+
.idea
24+
*.suo
25+
*.ntvs*
26+
*.njsproj
27+
*.sln
28+
*.sw?
29+
30+
*.tsbuildinfo
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["Vue.volar"]
3+
}

example/vue-vite7/README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# vue-vite7
2+
3+
This template should help get you started developing with Vue 3 in Vite.
4+
5+
## Recommended IDE Setup
6+
7+
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur).
8+
9+
## Customize configuration
10+
11+
See [Vite Configuration Reference](https://vite.dev/config/).
12+
13+
## Project Setup
14+
15+
```sh
16+
npm install
17+
```
18+
19+
### Compile and Hot-Reload for Development
20+
21+
```sh
22+
npm run dev
23+
```
24+
25+
### Compile and Minify for Production
26+
27+
```sh
28+
npm run build
29+
```

example/vue-vite7/index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html lang="">
3+
<head>
4+
<meta charset="UTF-8">
5+
<link rel="icon" href="/favicon.ico">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<link rel="modulepreload" as="script" crossorigin="" href="/static/js/login-19127703.js">
8+
<title>Vite 2App</title>
9+
</head>
10+
<body>
11+
<div id="app"></div>
12+
<script type="module" src="/src/main.js"></script>
13+
</body>
14+
</html>

example/vue-vite7/jsconfig.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"compilerOptions": {
3+
"paths": {
4+
"@/*": ["./src/*"]
5+
}
6+
},
7+
"exclude": ["node_modules", "dist"]
8+
}

example/vue-vite7/package.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "vue-vite7",
3+
"type": "module",
4+
"version": "0.0.0",
5+
"private": true,
6+
"engines": {
7+
"node": "^20.19.0 || >=22.12.0"
8+
},
9+
"scripts": {
10+
"dev": "vite",
11+
"build": "vite build",
12+
"preview": "vite preview"
13+
},
14+
"dependencies": {
15+
"vue": "^3.5.18"
16+
},
17+
"devDependencies": {
18+
"@plugin-web-update-notification/vite": "workspace:^",
19+
"@vitejs/plugin-vue": "^6.0.1",
20+
"vite": "^6.3.3"
21+
}
22+
}
4.19 KB
Binary file not shown.

example/vue-vite7/src/App.vue

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<script setup></script>
2+
3+
<template>
4+
<h1>You did it!</h1>
5+
<p>
6+
Visit <a href="https://vuejs.org/" target="_blank" rel="noopener">vuejs.org</a> to read the
7+
documentation
8+
</p>
9+
</template>
10+
11+
<style scoped></style>

0 commit comments

Comments
 (0)