ci: 持续集成

This commit is contained in:
佚名程序员 2023-03-08 10:48:51 +08:00
parent d5848bdb76
commit 8366605068
3 changed files with 21 additions and 23 deletions

View File

@ -8,6 +8,7 @@
/src/static /src/static
/src/manifest.json /src/manifest.json
/vite.config.ts /vite.config.ts
/unocss.config.js
# node 覆盖率文件 # node 覆盖率文件
coverage/ coverage/

View File

@ -1,24 +1,22 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="zh"> <html lang="zh">
<head>
<meta charset="UTF-8" />
<script>
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'));
document.write(
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
(coverSupport ? ', viewport-fit=cover' : '') +
'" />',
);
</script>
<title></title>
<!--preload-links-->
<!--app-context-->
</head>
<head> <body>
<meta charset="UTF-8" /> <div id="app"><!--app-html--></div>
<script> <script type="module" src="/src/main.ts"></script>
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)')); </body>
document.write(
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
(coverSupport ? ', viewport-fit=cover' : '') +
'" />',
);
</script>
<title></title>
<!--preload-links-->
<!--app-context-->
</head>
<body>
<div id="app"><!--app-html--></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html> </html>

View File

@ -31,7 +31,7 @@
"build:quickapp-webview-huawei": "uni build -p quickapp-webview-huawei", "build:quickapp-webview-huawei": "uni build -p quickapp-webview-huawei",
"build:quickapp-webview-union": "uni build -p quickapp-webview-union", "build:quickapp-webview-union": "uni build -p quickapp-webview-union",
"lint": "eslint --cache --max-warnings 0 \"src/**/*.{vue,ts}\" --fix", "lint": "eslint --cache --max-warnings 0 \"src/**/*.{vue,ts}\" --fix",
"format": "prettier --write \"src/**/*.{js,ts,json,css,scss,vue}\"", "format": "prettier --write src/",
"prepare": "husky install" "prepare": "husky install"
}, },
"dependencies": { "dependencies": {
@ -87,7 +87,6 @@
"typescript": "^4.9.5", "typescript": "^4.9.5",
"unocss": "^0.46.5", "unocss": "^0.46.5",
"unocss-preset-weapp": "^0.2.5", "unocss-preset-weapp": "^0.2.5",
"unplugin-vue-components": "^0.22.12",
"vite": "^4.1.4" "vite": "^4.1.4"
}, },
"husky": { "husky": {