From 742fd60b2a2ec4001ebc23d56278164b84f2c5d6 Mon Sep 17 00:00:00 2001 From: "WANGFAN\\wangf" <15871339963@163.com> Date: Thu, 5 Dec 2024 17:24:41 +0800 Subject: [PATCH] =?UTF-8?q?test=E6=B5=8B=E8=AF=95=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .husky/_/.gitignore | 1 - .husky/_/applypatch-msg | 2 - .husky/_/commit-msg | 2 - .husky/_/h | 20 ---- .husky/_/husky.sh | 0 .husky/_/post-applypatch | 2 - .husky/_/post-checkout | 2 - .husky/_/post-commit | 2 - .husky/_/post-merge | 2 - .husky/_/post-rewrite | 2 - .husky/_/pre-applypatch | 2 - .husky/_/pre-auto-gc | 2 - .husky/_/pre-push | 2 - .husky/_/pre-rebase | 2 - .husky/_/prepare-commit-msg | 2 - .husky/commit-msg | 4 + .husky/{_ => }/pre-commit | 0 package.json | 222 +++++++++++++++++------------------- 18 files changed, 111 insertions(+), 160 deletions(-) delete mode 100644 .husky/_/.gitignore delete mode 100644 .husky/_/applypatch-msg delete mode 100644 .husky/_/commit-msg delete mode 100644 .husky/_/h delete mode 100644 .husky/_/husky.sh delete mode 100644 .husky/_/post-applypatch delete mode 100644 .husky/_/post-checkout delete mode 100644 .husky/_/post-commit delete mode 100644 .husky/_/post-merge delete mode 100644 .husky/_/post-rewrite delete mode 100644 .husky/_/pre-applypatch delete mode 100644 .husky/_/pre-auto-gc delete mode 100644 .husky/_/pre-push delete mode 100644 .husky/_/pre-rebase delete mode 100644 .husky/_/prepare-commit-msg create mode 100644 .husky/commit-msg rename .husky/{_ => }/pre-commit (100%) diff --git a/.husky/_/.gitignore b/.husky/_/.gitignore deleted file mode 100644 index f59ec20..0000000 --- a/.husky/_/.gitignore +++ /dev/null @@ -1 +0,0 @@ -* \ No newline at end of file diff --git a/.husky/_/applypatch-msg b/.husky/_/applypatch-msg deleted file mode 100644 index 21c69a4..0000000 --- a/.husky/_/applypatch-msg +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env sh -. "${0%/*}/h" \ No newline at end of file diff --git a/.husky/_/commit-msg b/.husky/_/commit-msg deleted file mode 100644 index 21c69a4..0000000 --- a/.husky/_/commit-msg +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env sh -. "${0%/*}/h" \ No newline at end of file diff --git a/.husky/_/h b/.husky/_/h deleted file mode 100644 index 86bd0ba..0000000 --- a/.husky/_/h +++ /dev/null @@ -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 \ No newline at end of file diff --git a/.husky/_/husky.sh b/.husky/_/husky.sh deleted file mode 100644 index e69de29..0000000 diff --git a/.husky/_/post-applypatch b/.husky/_/post-applypatch deleted file mode 100644 index 21c69a4..0000000 --- a/.husky/_/post-applypatch +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env sh -. "${0%/*}/h" \ No newline at end of file diff --git a/.husky/_/post-checkout b/.husky/_/post-checkout deleted file mode 100644 index 21c69a4..0000000 --- a/.husky/_/post-checkout +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env sh -. "${0%/*}/h" \ No newline at end of file diff --git a/.husky/_/post-commit b/.husky/_/post-commit deleted file mode 100644 index 21c69a4..0000000 --- a/.husky/_/post-commit +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env sh -. "${0%/*}/h" \ No newline at end of file diff --git a/.husky/_/post-merge b/.husky/_/post-merge deleted file mode 100644 index 21c69a4..0000000 --- a/.husky/_/post-merge +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env sh -. "${0%/*}/h" \ No newline at end of file diff --git a/.husky/_/post-rewrite b/.husky/_/post-rewrite deleted file mode 100644 index 21c69a4..0000000 --- a/.husky/_/post-rewrite +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env sh -. "${0%/*}/h" \ No newline at end of file diff --git a/.husky/_/pre-applypatch b/.husky/_/pre-applypatch deleted file mode 100644 index 21c69a4..0000000 --- a/.husky/_/pre-applypatch +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env sh -. "${0%/*}/h" \ No newline at end of file diff --git a/.husky/_/pre-auto-gc b/.husky/_/pre-auto-gc deleted file mode 100644 index 21c69a4..0000000 --- a/.husky/_/pre-auto-gc +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env sh -. "${0%/*}/h" \ No newline at end of file diff --git a/.husky/_/pre-push b/.husky/_/pre-push deleted file mode 100644 index 21c69a4..0000000 --- a/.husky/_/pre-push +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env sh -. "${0%/*}/h" \ No newline at end of file diff --git a/.husky/_/pre-rebase b/.husky/_/pre-rebase deleted file mode 100644 index 21c69a4..0000000 --- a/.husky/_/pre-rebase +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env sh -. "${0%/*}/h" \ No newline at end of file diff --git a/.husky/_/prepare-commit-msg b/.husky/_/prepare-commit-msg deleted file mode 100644 index 21c69a4..0000000 --- a/.husky/_/prepare-commit-msg +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env sh -. "${0%/*}/h" \ No newline at end of file diff --git a/.husky/commit-msg b/.husky/commit-msg new file mode 100644 index 0000000..c8b18f5 --- /dev/null +++ b/.husky/commit-msg @@ -0,0 +1,4 @@ +#!/usr/bin/env sh +. "$(dirname "$0")/husky.sh" + +npm run lint:lint-staged diff --git a/.husky/_/pre-commit b/.husky/pre-commit similarity index 100% rename from .husky/_/pre-commit rename to .husky/pre-commit diff --git a/package.json b/package.json index e9574e9..addcf6d 100644 --- a/package.json +++ b/package.json @@ -1,115 +1,107 @@ -{ - "name": "snow-admin", - "private": true, - "version": "1.0.0", - "type": "module", - "description": "snow-admin open source management system", - "author": { - "name": "WANGFan", - "email": "2547096351@qq.com", - "url": "https://gitee.com/wang_fan_w" - }, - "license": "MIT", - "homepage": "https://gitee.com/wang_fan_w/SnowAdmin", - "repository": { - "type": "git", - "url": "https://gitee.com/wang_fan_w/SnowAdmin.git" - }, - "bugs": { - "url": "https://gitee.com/wang_fan_w/SnowAdmin/issues" - }, - "scripts": { - "dev": "vite", - "build:dev": "vue-tsc && vite build --mode development", - "build:prod": "vue-tsc && vite build --mode production", - "build:test": "vue-tsc && vite build --mode test", - "preview": "vite preview", - "lint:eslint": "eslint --fix --ext .js,.ts,.vue ./src", - "lint:prettier": "prettier --write \"src/**/*.{js,ts,json,tsx,css,less,scss,vue,html,md}\"", - "fix": "eslint src --fix", - "lint-staged": "lint-staged", - "prepare": "husky install", - "preinstall": "npx only-allow pnpm" - }, - "lint-staged": { - "src/**/*.{ts,vue}": [ - "eslint" - ], - "test/**/*.{ts,tsx,js,vue}": [ - "eslint" - ] - }, - "dependencies": { - "@arco-design/color": "^0.4.0", - "@codemirror/lang-javascript": "^6.2.2", - "@codemirror/lang-json": "^6.0.1", - "@codemirror/lang-vue": "^0.1.3", - "@codemirror/theme-one-dark": "^6.1.2", - "@visactor/vchart": "^1.11.0", - "@visactor/vchart-arco-theme": "^1.11.0", - "@wangeditor/editor": "^5.1.23", - "@wangeditor/editor-for-vue": "^5.1.12", - "axios": "^1.6.8", - "codemirror": "^6.0.1", - "driver.js": "^1.3.1", - "nprogress": "^0.2.0", - "pinia": "^2.1.7", - "pinia-plugin-persistedstate": "^3.2.1", - "print-js": "^1.6.0", - "sortablejs": "^1.15.2", - "vue": "^3.4.21", - "vue-codemirror6": "^1.3.0", - "vue-color-kit": "^1.0.6", - "vue-i18n": "10.0.0-alpha.3", - "vue-pick-colors": "^1.7.6", - "vue-router": "^4.3.0", - "vuedraggable": "^4.1.0", - "xgplayer": "^3.0.18" - }, - "devDependencies": { - "@arco-design/web-vue": "^2.55.0", - "@arco-plugins/vite-vue": "^1.4.5", - "@commitlint/cli": "^19.2.1", - "@commitlint/config-conventional": "^19.1.0", - "@types/node": "^20.11.30", - "@typescript-eslint/eslint-plugin": "^7.3.1", - "@typescript-eslint/parser": "^7.3.1", - "@vitejs/plugin-vue": "^5.0.4", - "commitlint": "^19.2.1", - "eslint": "^8.57.0", - "eslint-config-prettier": "^9.1.0", - "eslint-plugin-prettier": "^5.1.3", - "eslint-plugin-vue": "^9.23.0", - "husky": "^9.0.11", - "lint-staged": "^15.2.2", - "mockjs": "^1.1.0", - "postcss": "^8.4.38", - "postcss-html": "^1.6.0", - "postcss-preset-env": "^9.5.2", - "postcss-scss": "^4.0.9", - "prettier": "^3.2.5", - "sass": "^1.72.0", - "scss": "^0.2.4", - "stylelint": "^16.11.0", - "stylelint-config-html": "^1.1.0", - "stylelint-config-recess-order": "^5.1.1", - "stylelint-config-recommended-scss": "^14.1.0", - "stylelint-config-recommended-vue": "^1.5.0", - "stylelint-config-standard": "^36.0.1", - "stylelint-config-standard-scss": "^14.0.0", - "terser": "^5.29.2", - "typescript": "^5.2.2", - "unplugin-auto-import": "^0.17.5", - "unplugin-vue-components": "^0.26.0", - "vite": "^5.2.0", - "vite-plugin-eslint": "^1.8.1", - "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" - } -} +{ + "name": "snow-admin", + "private": true, + "version": "1.0.0", + "type": "module", + "description": "snow-admin open source management system", + "author": { + "name": "WANGFan", + "email": "2547096351@qq.com", + "url": "https://gitee.com/wang_fan_w" + }, + "license": "MIT", + "homepage": "https://gitee.com/wang_fan_w/SnowAdmin", + "repository": { + "type": "git", + "url": "https://gitee.com/wang_fan_w/SnowAdmin.git" + }, + "bugs": { + "url": "https://gitee.com/wang_fan_w/SnowAdmin/issues" + }, + "scripts": { + "dev": "vite", + "build:dev": "vue-tsc && vite build --mode development", + "build:prod": "vue-tsc && vite build --mode production", + "build:test": "vue-tsc && vite build --mode test", + "preview": "vite preview", + "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:lint-staged": "lint-staged", + "fix": "eslint src --fix", + "prepare": "husky install", + "preinstall": "npx only-allow pnpm" + }, + "dependencies": { + "@arco-design/color": "^0.4.0", + "@codemirror/lang-javascript": "^6.2.2", + "@codemirror/lang-json": "^6.0.1", + "@codemirror/lang-vue": "^0.1.3", + "@codemirror/theme-one-dark": "^6.1.2", + "@visactor/vchart": "^1.11.0", + "@visactor/vchart-arco-theme": "^1.11.0", + "@wangeditor/editor": "^5.1.23", + "@wangeditor/editor-for-vue": "^5.1.12", + "axios": "^1.6.8", + "codemirror": "^6.0.1", + "driver.js": "^1.3.1", + "nprogress": "^0.2.0", + "pinia": "^2.1.7", + "pinia-plugin-persistedstate": "^3.2.1", + "print-js": "^1.6.0", + "sortablejs": "^1.15.2", + "vue": "^3.4.21", + "vue-codemirror6": "^1.3.0", + "vue-color-kit": "^1.0.6", + "vue-i18n": "10.0.0-alpha.3", + "vue-pick-colors": "^1.7.6", + "vue-router": "^4.3.0", + "vuedraggable": "^4.1.0", + "xgplayer": "^3.0.18" + }, + "devDependencies": { + "@arco-design/web-vue": "^2.55.0", + "@arco-plugins/vite-vue": "^1.4.5", + "@commitlint/cli": "^19.2.1", + "@commitlint/config-conventional": "^19.1.0", + "@types/node": "^20.11.30", + "@typescript-eslint/eslint-plugin": "^7.3.1", + "@typescript-eslint/parser": "^7.3.1", + "@vitejs/plugin-vue": "^5.0.4", + "commitlint": "^19.2.1", + "eslint": "^8.57.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-prettier": "^5.1.3", + "eslint-plugin-vue": "^9.23.0", + "husky": "^9.0.11", + "lint-staged": "^15.2.2", + "mockjs": "^1.1.0", + "postcss": "^8.4.38", + "postcss-html": "^1.6.0", + "postcss-preset-env": "^9.5.2", + "postcss-scss": "^4.0.9", + "prettier": "^3.2.5", + "sass": "^1.72.0", + "scss": "^0.2.4", + "stylelint": "^16.11.0", + "stylelint-config-html": "^1.1.0", + "stylelint-config-recess-order": "^5.1.1", + "stylelint-config-recommended-scss": "^14.1.0", + "stylelint-config-recommended-vue": "^1.5.0", + "stylelint-config-standard": "^36.0.1", + "stylelint-config-standard-scss": "^14.0.0", + "terser": "^5.29.2", + "typescript": "^5.2.2", + "unplugin-auto-import": "^0.17.5", + "unplugin-vue-components": "^0.26.0", + "vite": "^5.2.0", + "vite-plugin-eslint": "^1.8.1", + "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" + } +}