Commit aae3a22d authored by jiaxu.yan's avatar jiaxu.yan

feat: 修改脚本

parent 22ec8988
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npx --no -- commitlint --edit ${1}
npm run commitlint ${1}
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npm run lint:stage
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
"preview": "node build/index.js --preview", "preview": "node build/index.js --preview",
"lint:stage": "lint-staged", "lint:stage": "lint-staged",
"spellcheck": "cspell lint --dot --gitignore --color --cache --show-suggestions \"src/**/*.@(html|js|cjs|mjs|ts|tsx|css|scss|md|vue)\"", "spellcheck": "cspell lint --dot --gitignore --color --cache --show-suggestions \"src/**/*.@(html|js|cjs|mjs|ts|tsx|css|scss|md|vue)\"",
"prepare": "husky install"
}, },
"dependencies": { "dependencies": {
"@riophae/vue-treeselect": "0.4.0", "@riophae/vue-treeselect": "0.4.0",
...@@ -56,7 +57,7 @@ ...@@ -56,7 +57,7 @@
"eslint-config-prettier": "^9.1.0", "eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^4.2.1", "eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-vue": "7.2.0", "eslint-plugin-vue": "7.2.0",
"husky": "^3.1.0", "husky": "^8.0.0",
"lint-staged": "^10.5.3", "lint-staged": "^10.5.3",
"mockjs": "1.0.1-beta3", "mockjs": "1.0.1-beta3",
"postcss": "^8.4.12", "postcss": "^8.4.12",
...@@ -103,12 +104,6 @@ ...@@ -103,12 +104,6 @@
"management-system" "management-system"
], ],
"license": "MIT", "license": "MIT",
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"lint-staged": { "lint-staged": {
"src/**/*.{js,vue}": [ "src/**/*.{js,vue}": [
"eslint --fix", "eslint --fix",
......
...@@ -125,8 +125,8 @@ devDependencies: ...@@ -125,8 +125,8 @@ devDependencies:
specifier: 7.2.0 specifier: 7.2.0
version: 7.2.0(eslint@7.32.0) version: 7.2.0(eslint@7.32.0)
husky: husky:
specifier: ^3.1.0 specifier: ^8.0.3
version: 3.1.0 version: 8.0.3
lint-staged: lint-staged:
specifier: ^10.5.3 specifier: ^10.5.3
version: 10.5.4 version: 10.5.4
...@@ -4436,10 +4436,6 @@ packages: ...@@ -4436,10 +4436,6 @@ packages:
resolution: {integrity: sha512-vsGdkwSCDpWmP80ncATX7iea5DWQemg1UgCW5J8tqjU3lYw4FBYuj89J0CTVomA7BEfvSZd84GmHko+MxFQU2A==} resolution: {integrity: sha512-vsGdkwSCDpWmP80ncATX7iea5DWQemg1UgCW5J8tqjU3lYw4FBYuj89J0CTVomA7BEfvSZd84GmHko+MxFQU2A==}
dev: true dev: true
/ci-info@2.0.0:
resolution: {integrity: sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==}
dev: true
/cipher-base@1.0.4: /cipher-base@1.0.4:
resolution: {integrity: sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==} resolution: {integrity: sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==}
dependencies: dependencies:
...@@ -8012,23 +8008,10 @@ packages: ...@@ -8012,23 +8008,10 @@ packages:
engines: {node: '>=8.12.0'} engines: {node: '>=8.12.0'}
dev: true dev: true
/husky@3.1.0: /husky@8.0.3:
resolution: {integrity: sha512-FJkPoHHB+6s4a+jwPqBudBDvYZsoQW5/HBuMSehC8qDiCe50kpcxeqFoDSlow+9I6wg47YxBoT3WxaURlrDIIQ==} resolution: {integrity: sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==}
engines: {node: '>=8.6.0'} engines: {node: '>=14'}
hasBin: true hasBin: true
requiresBuild: true
dependencies:
chalk: 2.4.2
ci-info: 2.0.0
cosmiconfig: 5.2.1
execa: 1.0.0
get-stdin: 7.0.0
opencollective-postinstall: 2.0.3
pkg-dir: 4.2.0
please-upgrade-node: 3.2.0
read-pkg: 5.2.0
run-node: 1.0.0
slash: 3.0.0
dev: true dev: true
/iconv-lite@0.4.24: /iconv-lite@0.4.24:
...@@ -9996,11 +9979,6 @@ packages: ...@@ -9996,11 +9979,6 @@ packages:
is-wsl: 2.2.0 is-wsl: 2.2.0
dev: true dev: true
/opencollective-postinstall@2.0.3:
resolution: {integrity: sha512-8AV/sCtuzUeTo8gQK5qDZzARrulB3egtLzFgteqB2tcT4Mw7B8Kt7JcDHmltjz6FOAHsvTevk70gZEbhM4ZS9Q==}
hasBin: true
dev: true
/opener@1.5.2: /opener@1.5.2:
resolution: {integrity: sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==} resolution: {integrity: sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==}
hasBin: true hasBin: true
...@@ -11545,12 +11523,6 @@ packages: ...@@ -11545,12 +11523,6 @@ packages:
engines: {node: '>=0.12.0'} engines: {node: '>=0.12.0'}
dev: true dev: true
/run-node@1.0.0:
resolution: {integrity: sha512-kc120TBlQ3mih1LSzdAJXo4xn/GWS2ec0l3S+syHDXP9uRr0JAT8Qd3mdMuyjqCzeZktgP3try92cEgf9Nks8A==}
engines: {node: '>=4'}
hasBin: true
dev: true
/run-parallel@1.2.0: /run-parallel@1.2.0:
resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==}
dependencies: dependencies:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment