ci: update validate-commit-msg to commitlint

pull/165/head
tangjinzhou 2018-05-21 10:13:25 +08:00
parent c67ddb4640
commit a689634384
3 changed files with 5 additions and 7 deletions

View File

@ -1,7 +1,7 @@
<script> <script>
import Trigger from '../index' import Trigger from '../index'
import '../assets/index.less' import '../assets/index.less'
import { Input, Button, Checkbox } from 'vue-antd-ui' import { Input, Button } from 'vue-antd-ui'
function getPopupAlign (state) { function getPopupAlign (state) {
return { return {
offset: [state.offsetX, state.offsetY], offset: [state.offsetX, state.offsetY],

View File

@ -2,7 +2,7 @@
/* eslint no-console:0 */ /* eslint no-console:0 */
import Tree, { TreeNode } from '../index' import Tree, { TreeNode } from '../index'
import '../assets/index.less' import '../assets/index.less'
import cssAnimation from 'css-animation' import cssAnimation from '../../_util/css-animation'
function animate (node, show, done) { function animate (node, show, done) {
let height = node.offsetHeight let height = node.offsetHeight

View File

@ -32,8 +32,7 @@
"dist": "node antd-tools/cli/run.js dist", "dist": "node antd-tools/cli/run.js dist",
"lint": "eslint -c ./.eslintrc --fix --ext .jsx,.js,.vue ./components", "lint": "eslint -c ./.eslintrc --fix --ext .jsx,.js,.vue ./components",
"lint:style": "stylelint \"./examples/**/*.less\" --fix --syntax less", "lint:style": "stylelint \"./examples/**/*.less\" --fix --syntax less",
"commitmsg": "validate-commit-msg", "commitmsg": "commitlint -x @commitlint/config-conventional -e $GIT_PARAMS",
"cm": "git-cz",
"codecov": "codecov" "codecov": "codecov"
}, },
"repository": { "repository": {
@ -54,6 +53,8 @@
"vue-template-compiler": ">=2.5.0" "vue-template-compiler": ">=2.5.0"
}, },
"devDependencies": { "devDependencies": {
"@commitlint/cli": "^6.2.0",
"@commitlint/config-conventional": "^6.1.3",
"@octokit/rest": "^15.4.1", "@octokit/rest": "^15.4.1",
"@vue/server-test-utils": "^1.0.0-beta.16", "@vue/server-test-utils": "^1.0.0-beta.16",
"@vue/test-utils": "^1.0.0-beta.16", "@vue/test-utils": "^1.0.0-beta.16",
@ -86,7 +87,6 @@
"codecov": "^3.0.0", "codecov": "^3.0.0",
"colorful": "^2.1.0", "colorful": "^2.1.0",
"commander": "^2.15.0", "commander": "^2.15.0",
"commitizen": "^2.9.6",
"cross-env": "^5.1.4", "cross-env": "^5.1.4",
"css-loader": "^0.28.7", "css-loader": "^0.28.7",
"deep-assign": "^2.0.0", "deep-assign": "^2.0.0",
@ -132,7 +132,6 @@
"stylelint": "^8.1.1", "stylelint": "^8.1.1",
"stylelint-config-standard": "^17.0.0", "stylelint-config-standard": "^17.0.0",
"through2": "^2.0.3", "through2": "^2.0.3",
"validate-commit-msg": "^2.14.0",
"vue": "^2.5.16", "vue": "^2.5.16",
"vue-antd-md-loader": "^1.0.3", "vue-antd-md-loader": "^1.0.3",
"vue-clipboard2": "0.0.8", "vue-clipboard2": "0.0.8",
@ -154,7 +153,6 @@
"babel-runtime": "6.x", "babel-runtime": "6.x",
"classnames": "^2.2.5", "classnames": "^2.2.5",
"component-classes": "^1.2.6", "component-classes": "^1.2.6",
"css-animation": "^1.4.1",
"dom-align": "^1.6.7", "dom-align": "^1.6.7",
"dom-closest": "^0.2.0", "dom-closest": "^0.2.0",
"dom-scroll-into-view": "^1.2.1", "dom-scroll-into-view": "^1.2.1",