|
@@ -19,15 +19,16 @@
|
|
|
},
|
|
|
"main": "dist/lib/vue-router-tab.umd.min.js",
|
|
|
"scripts": {
|
|
|
- "docs:dev": "vuepress dev docs",
|
|
|
- "docs:build": "vuepress build docs",
|
|
|
"demo:dev": "vue-cli-service serve",
|
|
|
"demo:build": "vue-cli-service build",
|
|
|
+ "docs:dev": "vuepress dev docs",
|
|
|
+ "docs:build": "vuepress build docs",
|
|
|
"lib:build": "vue-cli-service build --target lib --dest dist/lib ./src/lib/RouterTab/index.js",
|
|
|
"lib:build:report": "vue-cli-service build --report --target lib --dest dist/lib ./src/lib/RouterTab/index.js",
|
|
|
"lib:publish": "npm run lib:build && npm publish",
|
|
|
"lint": "vue-cli-service lint",
|
|
|
- "lint:fix": "vue-cli-service lint --fix"
|
|
|
+ "lint:fix": "vue-cli-service lint --fix",
|
|
|
+ "commit": "git-cz"
|
|
|
},
|
|
|
"dependencies": {
|
|
|
"vue": "^2.5.22",
|
|
@@ -41,13 +42,15 @@
|
|
|
"@vuepress/plugin-back-to-top": "^1.0.0-alpha.42",
|
|
|
"@vuepress/plugin-pwa": "^1.0.0-alpha.43",
|
|
|
"babel-eslint": "^10.0.1",
|
|
|
+ "cz-conventional-changelog": "^2.1.0",
|
|
|
"eslint": "^5.8.0",
|
|
|
"eslint-plugin-vue": "^5.0.0",
|
|
|
"lint-staged": "^8.1.0",
|
|
|
"node-sass": "^4.9.0",
|
|
|
"sass-loader": "^7.1.0",
|
|
|
"vue-template-compiler": "^2.5.22",
|
|
|
- "vuepress": "^1.0.0-alpha.42"
|
|
|
+ "vuepress": "^1.0.0-alpha.42",
|
|
|
+ "yorkie": "^2.0.0"
|
|
|
},
|
|
|
"eslintConfig": {
|
|
|
"root": true,
|
|
@@ -77,7 +80,8 @@
|
|
|
"not ie <= 8"
|
|
|
],
|
|
|
"gitHooks": {
|
|
|
- "pre-commit": "lint-staged"
|
|
|
+ "pre-commit": "lint-staged",
|
|
|
+ "commit-msg": "node scripts/verify-commit-msg.js"
|
|
|
},
|
|
|
"lint-staged": {
|
|
|
"*.js": [
|
|
@@ -88,5 +92,10 @@
|
|
|
"vue-cli-service lint",
|
|
|
"git add"
|
|
|
]
|
|
|
+ },
|
|
|
+ "config": {
|
|
|
+ "commitizen": {
|
|
|
+ "path": "./node_modules/cz-conventional-changelog"
|
|
|
+ }
|
|
|
}
|
|
|
}
|