|
8 | 8 | "test:unit": "vue-cli-service test:unit",
|
9 | 9 | "lint": "vue-cli-service lint",
|
10 | 10 | "build:preview": "vue-cli-service build --mode preview",
|
11 |
| - "lint:nofix": "vue-cli-service lint --no-fix" |
| 11 | + "lint:nofix": "vue-cli-service lint --no-fix", |
| 12 | + "lint:js": "eslint src/**/*.js --fix", |
| 13 | + "lint:css": "stylelint src/**/*.*ss --fix --custom-syntax postcss-less", |
| 14 | + "prepare": "husky install" |
12 | 15 | },
|
13 | 16 | "dependencies": {
|
14 | 17 | "@ant-design-vue/pro-layout": "^1.0.11",
|
|
38 | 41 | },
|
39 | 42 | "devDependencies": {
|
40 | 43 | "@ant-design/colors": "^3.2.2",
|
| 44 | + "@commitlint/cli": "^12.1.4", |
| 45 | + "@commitlint/config-conventional": "^12.1.4", |
41 | 46 | "@vue/babel-helper-vue-jsx-merge-props": "^1.2.1",
|
42 | 47 | "@vue/cli-plugin-babel": "^4.5.17",
|
43 | 48 | "@vue/cli-plugin-eslint": "^4.5.17",
|
|
50 | 55 | "babel-eslint": "^10.1.0",
|
51 | 56 | "babel-plugin-import": "^1.13.3",
|
52 | 57 | "babel-plugin-transform-remove-console": "^6.9.4",
|
| 58 | + "commitizen": "^4.2.4", |
| 59 | + "cz-conventional-changelog": "^3.3.0", |
53 | 60 | "eslint": "^5.16.0",
|
54 | 61 | "eslint-plugin-html": "^5.0.5",
|
55 | 62 | "eslint-plugin-vue": "^5.2.3",
|
56 | 63 | "file-loader": "^6.2.0",
|
57 | 64 | "git-revision-webpack-plugin": "^3.0.6",
|
| 65 | + "husky": "^6.0.0", |
58 | 66 | "less": "^3.13.1",
|
59 | 67 | "less-loader": "^5.0.0",
|
| 68 | + "lint-staged": "^12.5.0", |
| 69 | + "postcss-less": "^6.0.0", |
60 | 70 | "regenerator-runtime": "^0.13.9",
|
| 71 | + "stylelint": "^14.8.5", |
| 72 | + "stylelint-config-css-modules": "^4.1.0", |
| 73 | + "stylelint-config-recess-order": "^3.0.0", |
| 74 | + "stylelint-config-recommended": "^7.0.0", |
| 75 | + "stylelint-config-standard": "^25.0.0", |
| 76 | + "stylelint-order": "^5.0.0", |
61 | 77 | "vue-svg-icon-loader": "^2.1.1",
|
62 | 78 | "vue-template-compiler": "^2.6.14",
|
63 | 79 | "webpack-theme-color-replacer": "^1.3.26"
|
| 80 | + }, |
| 81 | + "config": { |
| 82 | + "commitizen": { |
| 83 | + "path": "./node_modules/cz-conventional-changelog" |
| 84 | + } |
| 85 | + }, |
| 86 | + "husky": { |
| 87 | + "hooks": { |
| 88 | + "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" |
| 89 | + } |
| 90 | + }, |
| 91 | + "gitHooks": { |
| 92 | + "pre-commit": "lint-staged" |
64 | 93 | }
|
65 | 94 | }
|
0 commit comments