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/manifest.json
/vite.config.ts
/unocss.config.js
# node 覆盖率文件
coverage/

View File

@ -1,24 +1,22 @@
<!DOCTYPE html>
<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>
<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>
<body>
<div id="app"><!--app-html--></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
<body>
<div id="app"><!--app-html--></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>

View File

@ -31,7 +31,7 @@
"build:quickapp-webview-huawei": "uni build -p quickapp-webview-huawei",
"build:quickapp-webview-union": "uni build -p quickapp-webview-union",
"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"
},
"dependencies": {
@ -87,7 +87,6 @@
"typescript": "^4.9.5",
"unocss": "^0.46.5",
"unocss-preset-weapp": "^0.2.5",
"unplugin-vue-components": "^0.22.12",
"vite": "^4.1.4"
},
"husky": {