feat: ✨ 提交框架修改重新调整哈士奇
Showing
... | @@ -7,6 +7,7 @@ | ... | @@ -7,6 +7,7 @@ |
"stylelint:fix": "stylelint src/**/*.{html,vue,sass} --fix", | "stylelint:fix": "stylelint src/**/*.{html,vue,sass} --fix", | ||
"lint:fix": "prettier src/**/* --write", | "lint:fix": "prettier src/**/* --write", | ||
"lint": "eslint src/**/* --ext .js,.vue", | "lint": "eslint src/**/* --ext .js,.vue", | ||
"lint:stage": "lint-staged", | |||
"build:prod": "vue-cli-service build", | "build:prod": "vue-cli-service build", | ||
"build:stage": "vue-cli-service build --mode staging", | "build:stage": "vue-cli-service build --mode staging", | ||
"cz": "npm run log && git add . && git cz", | "cz": "npm run log && git add . && git cz", | ||
... | @@ -14,7 +15,9 @@ | ... | @@ -14,7 +15,9 @@ |
"log": "conventional-changelog --config ./node_modules/vue-cli-plugin-commitlint/lib/log -i CHANGELOG.md -s -r 0", | "log": "conventional-changelog --config ./node_modules/vue-cli-plugin-commitlint/lib/log -i CHANGELOG.md -s -r 0", | ||
"preview": "node build/index.js --preview", | "preview": "node build/index.js --preview", | ||
"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" | "prepare": "husky install", | ||
"commit": "git-cz", | |||
"commitlint": "commitlint --edit" | |||
}, | }, | ||
"dependencies": { | "dependencies": { | ||
"@riophae/vue-treeselect": "0.4.0", | "@riophae/vue-treeselect": "0.4.0", | ||
... | @@ -87,7 +90,7 @@ | ... | @@ -87,7 +90,7 @@ |
], | ], | ||
"config": { | "config": { | ||
"commitizen": { | "commitizen": { | ||
"path": "./node_modules/vue-cli-plugin-commitlint/lib/cz" | "path": "node_modules/cz-git" | ||
} | } | ||
}, | }, | ||
"engines": { | "engines": { | ||
... | @@ -111,10 +114,9 @@ | ... | @@ -111,10 +114,9 @@ |
], | ], | ||
"license": "MIT", | "license": "MIT", | ||
"lint-staged": { | "lint-staged": { | ||
"src/**/*.{js,vue}": [ | "src/**/*.{html,vue,css,sass,scss,js}": "prettier --write", | ||
"eslint --fix", | "src/**/*.{vue,js}": "eslint --fix", | ||
"git add" | "src/**/*.{vue,css,sass,scss}": "stylelint --fix" | ||
] | |||
}, | }, | ||
"repository": { | "repository": { | ||
"type": "git", | "type": "git", | ||
... | ... |
src/scripts/utils.ts
0 → 100644
Please register or sign in to comment