Commit 2b7bc75c authored by chenqikuai's avatar chenqikuai

ci: 添加Commitizen、husky、prettier

parent 82275f58
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx lint-staged
This diff is collapsed.
...@@ -8,7 +8,8 @@ ...@@ -8,7 +8,8 @@
"build": "vue-cli-service build --report", "build": "vue-cli-service build --report",
"buildReview": "vue-cli-service build --mode ProReview", "buildReview": "vue-cli-service build --mode ProReview",
"bd": "vue-cli-service build --mode eruda & bash ./deploy.sh", "bd": "vue-cli-service build --mode eruda & bash ./deploy.sh",
"bd_110": "vue-cli-service build & bash ./deploy_110.sh" "bd_110": "vue-cli-service build & bash ./deploy_110.sh",
"prepare": "husky install"
}, },
"dependencies": { "dependencies": {
"@fingerprintjs/fingerprintjs": "^3.3.0", "@fingerprintjs/fingerprintjs": "^3.3.0",
...@@ -50,17 +51,29 @@ ...@@ -50,17 +51,29 @@
"autoprefixer": "^9.8.6", "autoprefixer": "^9.8.6",
"babel-plugin-import": "^1.13.3", "babel-plugin-import": "^1.13.3",
"compressorjs": "^1.0.7", "compressorjs": "^1.0.7",
"cz-conventional-changelog": "^3.3.0",
"husky": "^7.0.4",
"less": "^3.0.4", "less": "^3.0.4",
"less-loader": "^5.0.0", "less-loader": "^5.0.0",
"lint-staged": "^12.1.1",
"pinia": "^2.0.0-alpha.10", "pinia": "^2.0.0-alpha.10",
"plyr": "^3.6.7", "plyr": "^3.6.7",
"postcss": "^7.0.36", "postcss": "^7.0.36",
"postcss-px-to-viewport-opt": "0.0.4", "postcss-px-to-viewport-opt": "0.0.4",
"postcss-remove-declaration": "^1.0.0", "postcss-remove-declaration": "^1.0.0",
"postcss-viewport-units": "^0.1.6", "postcss-viewport-units": "^0.1.6",
"prettier": "^2.4.1",
"protobufjs": "^6.10.2", "protobufjs": "^6.10.2",
"swiper": "^6.5.7", "swiper": "^6.5.7",
"tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.2.7", "tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.2.7",
"typescript": "~4.1.5" "typescript": "~4.1.5"
},
"lint-staged": {
"*.{js,css,md,vue,ts}": "prettier --write"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
} }
} }
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