Skip to content

Commit a689634

Browse files
committed
ci: update validate-commit-msg to commitlint
1 parent c67ddb4 commit a689634

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

components/trigger/demo/simple.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script>
22
import Trigger from '../index'
33
import '../assets/index.less'
4-
import { Input, Button, Checkbox } from 'vue-antd-ui'
4+
import { Input, Button } from 'vue-antd-ui'
55
function getPopupAlign (state) {
66
return {
77
offset: [state.offsetX, state.offsetY],

components/vc-tree/demo/animation.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/* eslint no-console:0 */
33
import Tree, { TreeNode } from '../index'
44
import '../assets/index.less'
5-
import cssAnimation from 'css-animation'
5+
import cssAnimation from '../../_util/css-animation'
66
77
function animate (node, show, done) {
88
let height = node.offsetHeight

package.json

+3-5
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@
3232
"dist": "node antd-tools/cli/run.js dist",
3333
"lint": "eslint -c ./.eslintrc --fix --ext .jsx,.js,.vue ./components",
3434
"lint:style": "stylelint \"./examples/**/*.less\" --fix --syntax less",
35-
"commitmsg": "validate-commit-msg",
36-
"cm": "git-cz",
35+
"commitmsg": "commitlint -x @commitlint/config-conventional -e $GIT_PARAMS",
3736
"codecov": "codecov"
3837
},
3938
"repository": {
@@ -54,6 +53,8 @@
5453
"vue-template-compiler": ">=2.5.0"
5554
},
5655
"devDependencies": {
56+
"@commitlint/cli": "^6.2.0",
57+
"@commitlint/config-conventional": "^6.1.3",
5758
"@octokit/rest": "^15.4.1",
5859
"@vue/server-test-utils": "^1.0.0-beta.16",
5960
"@vue/test-utils": "^1.0.0-beta.16",
@@ -86,7 +87,6 @@
8687
"codecov": "^3.0.0",
8788
"colorful": "^2.1.0",
8889
"commander": "^2.15.0",
89-
"commitizen": "^2.9.6",
9090
"cross-env": "^5.1.4",
9191
"css-loader": "^0.28.7",
9292
"deep-assign": "^2.0.0",
@@ -132,7 +132,6 @@
132132
"stylelint": "^8.1.1",
133133
"stylelint-config-standard": "^17.0.0",
134134
"through2": "^2.0.3",
135-
"validate-commit-msg": "^2.14.0",
136135
"vue": "^2.5.16",
137136
"vue-antd-md-loader": "^1.0.3",
138137
"vue-clipboard2": "0.0.8",
@@ -154,7 +153,6 @@
154153
"babel-runtime": "6.x",
155154
"classnames": "^2.2.5",
156155
"component-classes": "^1.2.6",
157-
"css-animation": "^1.4.1",
158156
"dom-align": "^1.6.7",
159157
"dom-closest": "^0.2.0",
160158
"dom-scroll-into-view": "^1.2.1",

0 commit comments

Comments
 (0)