-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ac69238
commit 522d162
Showing
9 changed files
with
1,390 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
|
||
registry=https://registry.npmjs.org/ | ||
# registry=https://registry.npmjs.org/ | ||
registry=https://registry.npmmirror.com/ | ||
auto-install-peers=true | ||
strict-peer-dependencies=false | ||
strict-peer-dependencies=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
/dist/* | ||
.local | ||
.output.js | ||
/node_modules/** | ||
|
||
**/*.svg | ||
**/*.sh | ||
|
||
/public/* | ||
/lib/* | ||
/dist/* | ||
.local | ||
.output.js | ||
/node_modules/** | ||
|
||
**/*.svg | ||
**/*.sh | ||
|
||
/public/* | ||
/lib/* | ||
/docs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
<!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> | ||
<style> | ||
/* 谷歌与苹果自带浏览器 隐藏浏览器自带滚动条 */ | ||
*::-webkit-scrollbar { | ||
display: none; | ||
} | ||
|
||
/* 火狐浏览器 隐藏浏览器自带滚动条 */ | ||
* { | ||
scrollbar-width: none; | ||
} | ||
|
||
/* IE 与微软浏览器 隐藏浏览器自带滚动条 */ | ||
* { | ||
-ms-overflow-style: none; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="/src/main.ts"></script> | ||
</body> | ||
|
||
</html> | ||
<!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>mutiplexed-elplus</title> | ||
<style> | ||
/* 谷歌与苹果自带浏览器 隐藏浏览器自带滚动条 */ | ||
*::-webkit-scrollbar { | ||
display: none; | ||
} | ||
|
||
/* 火狐浏览器 隐藏浏览器自带滚动条 */ | ||
* { | ||
scrollbar-width: none; | ||
} | ||
|
||
/* IE 与微软浏览器 隐藏浏览器自带滚动条 */ | ||
* { | ||
-ms-overflow-style: none; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="/src/main.ts"></script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// vitest.config.ts Vitest测试框架的配置文件 | ||
import { resolve } from 'path' | ||
import { defineConfig } from 'vitest/config' | ||
import vue from '@vitejs/plugin-vue' | ||
|
||
export default defineConfig({ | ||
// 测试环境配置 | ||
test: { | ||
// 指定测试环境,例如使用happy-dom作为DOM环境 | ||
// 相比于 jsdom,Happy DOM 设计得更加轻量级,旨在提供更快的启动时间和运行速度。 | ||
environment: 'happy-dom', | ||
|
||
// 全局变量配置 | ||
globals: true, | ||
|
||
// 测试文件匹配模式 | ||
include: ['**/__tests__/*.test.{ts,tsx}', '**/?(*.)+(spec|test).{ts,tsx}'], | ||
|
||
// 覆盖默认的测试报告处理器 | ||
reporters: 'default', | ||
|
||
// 收集代码覆盖率 | ||
coverage: { | ||
provider: 'v8', | ||
reporter: ['text', 'json', 'html'] | ||
} | ||
}, | ||
|
||
// 测试服务器配置,如端口号、代理等 | ||
server: { | ||
port: 3000 | ||
}, | ||
resolve: { | ||
alias: { | ||
'@': resolve('src') | ||
} | ||
}, | ||
// 插件配置 | ||
plugins: [ | ||
vue() | ||
// 可以在这里引入并配置Vitest的插件 | ||
] | ||
}) |
Oops, something went wrong.