|
5 | 5 | "scripts": {
|
6 | 6 | "serve": "vue-cli-service serve",
|
7 | 7 | "build": "vue-cli-service build",
|
8 |
| - "lint": "vue-cli-service lint" |
| 8 | + "lint": "vue-cli-service lint", |
| 9 | + "commit": "npx cz" |
9 | 10 | },
|
10 | 11 | "dependencies": {
|
11 | 12 | "core-js": "^3.6.5",
|
12 | 13 | "vue": "^3.0.0-0",
|
13 | 14 | "vue-class-component": "^8.0.0-0",
|
14 | 15 | "vue-router": "^4.0.0-0",
|
15 |
| - "vuex": "^4.0.0-0" |
| 16 | + "vuex": "^4.0.0-0", |
| 17 | + "vuex-persistedstate": "^3.1.0" |
16 | 18 | },
|
17 | 19 | "devDependencies": {
|
18 | 20 | "@typescript-eslint/eslint-plugin": "^2.33.0",
|
|
26 | 28 | "@vue/compiler-sfc": "^3.0.0-0",
|
27 | 29 | "@vue/eslint-config-standard": "^5.1.2",
|
28 | 30 | "@vue/eslint-config-typescript": "^5.0.2",
|
| 31 | + "babel-eslint": "^10.1.0", |
| 32 | + "commitizen": "^4.2.1", |
| 33 | + "cz-conventional-changelog": "3.3.0", |
29 | 34 | "eslint": "^6.7.2",
|
| 35 | + "eslint-config-prettier": "^6.11.0", |
30 | 36 | "eslint-plugin-import": "^2.20.2",
|
31 | 37 | "eslint-plugin-node": "^11.1.0",
|
| 38 | + "eslint-plugin-prettier": "^3.1.4", |
32 | 39 | "eslint-plugin-promise": "^4.2.1",
|
33 | 40 | "eslint-plugin-standard": "^4.0.0",
|
34 | 41 | "eslint-plugin-vue": "^7.0.0-0",
|
35 | 42 | "less": "^3.0.4",
|
36 | 43 | "less-loader": "^5.0.0",
|
37 |
| - "typescript": "~3.9.3" |
| 44 | + "prettier": "^2.1.1", |
| 45 | + "typescript": "~3.9.3", |
| 46 | + "vue-property-decorator": "^9.0.0", |
| 47 | + "vuex-persistedstate": "^3.1.0" |
38 | 48 | },
|
39 | 49 | "eslintConfig": {
|
40 | 50 | "root": true,
|
|
55 | 65 | "> 1%",
|
56 | 66 | "last 2 versions",
|
57 | 67 | "not dead"
|
58 |
| - ] |
| 68 | + ], |
| 69 | + "config": { |
| 70 | + "commitizen": { |
| 71 | + "path": "./node_modules/cz-conventional-changelog", |
| 72 | + "disableScopeLowerCase": false, |
| 73 | + "disableSubjectLowerCase": false, |
| 74 | + "maxHeaderWidth": 100, |
| 75 | + "maxLineWidth": 100, |
| 76 | + "defaultType": "", |
| 77 | + "defaultScope": "", |
| 78 | + "defaultSubject": "", |
| 79 | + "defaultBody": "", |
| 80 | + "defaultIssues": "", |
| 81 | + "types": { |
| 82 | + "feat": { |
| 83 | + "description": "新增功能", |
| 84 | + "title": "新增" |
| 85 | + }, |
| 86 | + "ci": { |
| 87 | + "description": "部署相关", |
| 88 | + "title": "CI/CD" |
| 89 | + }, |
| 90 | + "fix": { |
| 91 | + "description": "bug 修复", |
| 92 | + "title": "修复" |
| 93 | + } |
| 94 | + } |
| 95 | + } |
| 96 | + } |
59 | 97 | }
|
0 commit comments