|
4 | 4 | "description": "",
|
5 | 5 | "main": "lib/index.js",
|
6 | 6 | "scripts": {
|
7 |
| - "test": "jest --watch" |
8 |
| - }, |
9 |
| - "repository": { |
10 |
| - "type": "git", |
11 |
| - "url": "git+https://github.com/AngusFu/md2vue.git" |
| 7 | + "test": "jest --watch", |
| 8 | + "commit": "npx git-cz", |
| 9 | + "release": "npx standard-version", |
| 10 | + "lint": "eslint ./lib", |
| 11 | + "lint:fix": "eslint --fix --ext .js,.jsx ./lib", |
| 12 | + "format": "pretty-quick --pattern \"**/*.*(js|jsx)\"" |
12 | 13 | },
|
| 14 | + "repository": "git+https://github.com/AngusFu/md2vue.git", |
13 | 15 | "author": "wemlion <[email protected]>",
|
14 | 16 | "license": "MIT",
|
15 | 17 | "bugs": {
|
|
54 | 56 | "stylus": "^0.54.5"
|
55 | 57 | },
|
56 | 58 | "devDependencies": {
|
| 59 | + "@commitlint/cli": "^7.5.2", |
| 60 | + "@commitlint/config-conventional": "^7.5.0", |
57 | 61 | "@vue/test-utils": "^1.0.0-beta.24",
|
| 62 | + "babel-eslint": "^10.0.1", |
| 63 | + "commitizen": "^3.0.7", |
| 64 | + "cz-conventional-changelog": "^2.1.0", |
| 65 | + "eslint": "^5.15.1", |
| 66 | + "eslint-config-prettier": "^4.1.0", |
| 67 | + "eslint-formatter-friendly": "^6.0.0", |
| 68 | + "eslint-plugin-prettier": "^3.0.1", |
| 69 | + "husky": "^1.3.1", |
58 | 70 | "jest": "^23.5.0",
|
59 |
| - "standard-version": "^5.0.0", |
| 71 | + "lint-staged": "^8.1.5", |
| 72 | + "prettier": "^1.16.4", |
| 73 | + "pretty-quick": "^1.10.0", |
| 74 | + "standard-version": "^5.0.1", |
60 | 75 | "vue": "^2.5.17"
|
| 76 | + }, |
| 77 | + "config": { |
| 78 | + "commitizen": { |
| 79 | + "path": "./node_modules/cz-conventional-changelog" |
| 80 | + } |
| 81 | + }, |
| 82 | + "husky": { |
| 83 | + "hooks": { |
| 84 | + "commit-msg": "commitlint -E HUSKY_GIT_PARAMS", |
| 85 | + "pre-commit": "pretty-quick --staged && lint-staged" |
| 86 | + } |
| 87 | + }, |
| 88 | + "lint-staged": { |
| 89 | + "linters": { |
| 90 | + "*.{js,jsx}": [ |
| 91 | + "eslint --format friendly" |
| 92 | + ] |
| 93 | + }, |
| 94 | + "ignore": [ |
| 95 | + "**/dist/*.js" |
| 96 | + ] |
| 97 | + }, |
| 98 | + "commitlint": { |
| 99 | + "extends": [ |
| 100 | + "@commitlint/config-conventional" |
| 101 | + ] |
61 | 102 | }
|
62 | 103 | }
|
0 commit comments