test测试提交

This commit is contained in:
WANGFAN\wangf 2024-12-05 17:24:41 +08:00
parent efe206ac47
commit 742fd60b2a
18 changed files with 111 additions and 160 deletions

1
.husky/_/.gitignore vendored
View File

@ -1 +0,0 @@
*

View File

@ -1,2 +0,0 @@
#!/usr/bin/env sh
. "${0%/*}/h"

View File

@ -1,2 +0,0 @@
#!/usr/bin/env sh
. "${0%/*}/h"

View File

@ -1,20 +0,0 @@
#!/usr/bin/env sh
[ "$HUSKY" = "2" ] && set -x
h="${0##*/}"
s="${0%/*/*}/$h"
[ ! -f "$s" ] && exit 0
for f in "${XDG_CONFIG_HOME:-$HOME/.config}/husky/init.sh" "$HOME/.huskyrc"; do
# shellcheck disable=SC1090
[ -f "$f" ] && . "$f"
done
[ "${HUSKY-}" = "0" ] && exit 0
sh -e "$s" "$@"
c=$?
[ $c != 0 ] && echo "husky - $h script failed (code $c)"
[ $c = 127 ] && echo "husky - command not found in PATH=$PATH"
exit $c

View File

View File

@ -1,2 +0,0 @@
#!/usr/bin/env sh
. "${0%/*}/h"

View File

@ -1,2 +0,0 @@
#!/usr/bin/env sh
. "${0%/*}/h"

View File

@ -1,2 +0,0 @@
#!/usr/bin/env sh
. "${0%/*}/h"

View File

@ -1,2 +0,0 @@
#!/usr/bin/env sh
. "${0%/*}/h"

View File

@ -1,2 +0,0 @@
#!/usr/bin/env sh
. "${0%/*}/h"

View File

@ -1,2 +0,0 @@
#!/usr/bin/env sh
. "${0%/*}/h"

View File

@ -1,2 +0,0 @@
#!/usr/bin/env sh
. "${0%/*}/h"

View File

@ -1,2 +0,0 @@
#!/usr/bin/env sh
. "${0%/*}/h"

View File

@ -1,2 +0,0 @@
#!/usr/bin/env sh
. "${0%/*}/h"

View File

@ -1,2 +0,0 @@
#!/usr/bin/env sh
. "${0%/*}/h"

4
.husky/commit-msg Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname "$0")/husky.sh"
npm run lint:lint-staged

View File

@ -1,115 +1,107 @@
{ {
"name": "snow-admin", "name": "snow-admin",
"private": true, "private": true,
"version": "1.0.0", "version": "1.0.0",
"type": "module", "type": "module",
"description": "snow-admin open source management system", "description": "snow-admin open source management system",
"author": { "author": {
"name": "WANGFan", "name": "WANGFan",
"email": "2547096351@qq.com", "email": "2547096351@qq.com",
"url": "https://gitee.com/wang_fan_w" "url": "https://gitee.com/wang_fan_w"
}, },
"license": "MIT", "license": "MIT",
"homepage": "https://gitee.com/wang_fan_w/SnowAdmin", "homepage": "https://gitee.com/wang_fan_w/SnowAdmin",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://gitee.com/wang_fan_w/SnowAdmin.git" "url": "https://gitee.com/wang_fan_w/SnowAdmin.git"
}, },
"bugs": { "bugs": {
"url": "https://gitee.com/wang_fan_w/SnowAdmin/issues" "url": "https://gitee.com/wang_fan_w/SnowAdmin/issues"
}, },
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build:dev": "vue-tsc && vite build --mode development", "build:dev": "vue-tsc && vite build --mode development",
"build:prod": "vue-tsc && vite build --mode production", "build:prod": "vue-tsc && vite build --mode production",
"build:test": "vue-tsc && vite build --mode test", "build:test": "vue-tsc && vite build --mode test",
"preview": "vite preview", "preview": "vite preview",
"lint:eslint": "eslint --fix --ext .js,.ts,.vue ./src", "lint:eslint": "eslint --fix --ext .js,.ts,.vue ./src",
"lint:prettier": "prettier --write \"src/**/*.{js,ts,json,tsx,css,less,scss,vue,html,md}\"", "lint:prettier": "prettier --write \"src/**/*.{js,ts,json,tsx,css,less,scss,vue,html,md}\"",
"fix": "eslint src --fix", "lint:lint-staged": "lint-staged",
"lint-staged": "lint-staged", "fix": "eslint src --fix",
"prepare": "husky install", "prepare": "husky install",
"preinstall": "npx only-allow pnpm" "preinstall": "npx only-allow pnpm"
}, },
"lint-staged": { "dependencies": {
"src/**/*.{ts,vue}": [ "@arco-design/color": "^0.4.0",
"eslint" "@codemirror/lang-javascript": "^6.2.2",
], "@codemirror/lang-json": "^6.0.1",
"test/**/*.{ts,tsx,js,vue}": [ "@codemirror/lang-vue": "^0.1.3",
"eslint" "@codemirror/theme-one-dark": "^6.1.2",
] "@visactor/vchart": "^1.11.0",
}, "@visactor/vchart-arco-theme": "^1.11.0",
"dependencies": { "@wangeditor/editor": "^5.1.23",
"@arco-design/color": "^0.4.0", "@wangeditor/editor-for-vue": "^5.1.12",
"@codemirror/lang-javascript": "^6.2.2", "axios": "^1.6.8",
"@codemirror/lang-json": "^6.0.1", "codemirror": "^6.0.1",
"@codemirror/lang-vue": "^0.1.3", "driver.js": "^1.3.1",
"@codemirror/theme-one-dark": "^6.1.2", "nprogress": "^0.2.0",
"@visactor/vchart": "^1.11.0", "pinia": "^2.1.7",
"@visactor/vchart-arco-theme": "^1.11.0", "pinia-plugin-persistedstate": "^3.2.1",
"@wangeditor/editor": "^5.1.23", "print-js": "^1.6.0",
"@wangeditor/editor-for-vue": "^5.1.12", "sortablejs": "^1.15.2",
"axios": "^1.6.8", "vue": "^3.4.21",
"codemirror": "^6.0.1", "vue-codemirror6": "^1.3.0",
"driver.js": "^1.3.1", "vue-color-kit": "^1.0.6",
"nprogress": "^0.2.0", "vue-i18n": "10.0.0-alpha.3",
"pinia": "^2.1.7", "vue-pick-colors": "^1.7.6",
"pinia-plugin-persistedstate": "^3.2.1", "vue-router": "^4.3.0",
"print-js": "^1.6.0", "vuedraggable": "^4.1.0",
"sortablejs": "^1.15.2", "xgplayer": "^3.0.18"
"vue": "^3.4.21", },
"vue-codemirror6": "^1.3.0", "devDependencies": {
"vue-color-kit": "^1.0.6", "@arco-design/web-vue": "^2.55.0",
"vue-i18n": "10.0.0-alpha.3", "@arco-plugins/vite-vue": "^1.4.5",
"vue-pick-colors": "^1.7.6", "@commitlint/cli": "^19.2.1",
"vue-router": "^4.3.0", "@commitlint/config-conventional": "^19.1.0",
"vuedraggable": "^4.1.0", "@types/node": "^20.11.30",
"xgplayer": "^3.0.18" "@typescript-eslint/eslint-plugin": "^7.3.1",
}, "@typescript-eslint/parser": "^7.3.1",
"devDependencies": { "@vitejs/plugin-vue": "^5.0.4",
"@arco-design/web-vue": "^2.55.0", "commitlint": "^19.2.1",
"@arco-plugins/vite-vue": "^1.4.5", "eslint": "^8.57.0",
"@commitlint/cli": "^19.2.1", "eslint-config-prettier": "^9.1.0",
"@commitlint/config-conventional": "^19.1.0", "eslint-plugin-prettier": "^5.1.3",
"@types/node": "^20.11.30", "eslint-plugin-vue": "^9.23.0",
"@typescript-eslint/eslint-plugin": "^7.3.1", "husky": "^9.0.11",
"@typescript-eslint/parser": "^7.3.1", "lint-staged": "^15.2.2",
"@vitejs/plugin-vue": "^5.0.4", "mockjs": "^1.1.0",
"commitlint": "^19.2.1", "postcss": "^8.4.38",
"eslint": "^8.57.0", "postcss-html": "^1.6.0",
"eslint-config-prettier": "^9.1.0", "postcss-preset-env": "^9.5.2",
"eslint-plugin-prettier": "^5.1.3", "postcss-scss": "^4.0.9",
"eslint-plugin-vue": "^9.23.0", "prettier": "^3.2.5",
"husky": "^9.0.11", "sass": "^1.72.0",
"lint-staged": "^15.2.2", "scss": "^0.2.4",
"mockjs": "^1.1.0", "stylelint": "^16.11.0",
"postcss": "^8.4.38", "stylelint-config-html": "^1.1.0",
"postcss-html": "^1.6.0", "stylelint-config-recess-order": "^5.1.1",
"postcss-preset-env": "^9.5.2", "stylelint-config-recommended-scss": "^14.1.0",
"postcss-scss": "^4.0.9", "stylelint-config-recommended-vue": "^1.5.0",
"prettier": "^3.2.5", "stylelint-config-standard": "^36.0.1",
"sass": "^1.72.0", "stylelint-config-standard-scss": "^14.0.0",
"scss": "^0.2.4", "terser": "^5.29.2",
"stylelint": "^16.11.0", "typescript": "^5.2.2",
"stylelint-config-html": "^1.1.0", "unplugin-auto-import": "^0.17.5",
"stylelint-config-recess-order": "^5.1.1", "unplugin-vue-components": "^0.26.0",
"stylelint-config-recommended-scss": "^14.1.0", "vite": "^5.2.0",
"stylelint-config-recommended-vue": "^1.5.0", "vite-plugin-eslint": "^1.8.1",
"stylelint-config-standard": "^36.0.1", "vite-plugin-html": "^3.2.2",
"stylelint-config-standard-scss": "^14.0.0", "vite-plugin-mock": "^2.9.6",
"terser": "^5.29.2", "vite-plugin-svg-icons": "^2.0.1",
"typescript": "^5.2.2", "vue-tsc": "^2.0.6"
"unplugin-auto-import": "^0.17.5", },
"unplugin-vue-components": "^0.26.0", "engines": {
"vite": "^5.2.0", "node": ">= 18.12.0",
"vite-plugin-eslint": "^1.8.1", "pnpm": ">= 8.7.0"
"vite-plugin-html": "^3.2.2", }
"vite-plugin-mock": "^2.9.6", }
"vite-plugin-svg-icons": "^2.0.1",
"vue-tsc": "^2.0.6"
},
"engines": {
"node": ">= 18.12.0",
"pnpm": ">= 8.7.0"
}
}