Skip to content

Commit

Permalink
fix(commitlint): 添加commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
luoxue committed Dec 23, 2019
1 parent 7f4ac87 commit e4121e8
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 29 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
demo | 修改demo | [86da5a4](https://github.com/luoxue-victor/learn_webpack/commit/86da5a4)
gitignore | 增加dist | [d723459](https://github.com/luoxue-victor/learn_webpack/commit/d723459)
husky | 添加 husky | [6ba2389](https://github.com/luoxue-victor/learn_webpack/commit/6ba2389)
lint-staged | lint-staged | [7f4ac87](https://github.com/luoxue-victor/learn_webpack/commit/7f4ac87)
lints | 修复lints bug | [c0696ff](https://github.com/luoxue-victor/learn_webpack/commit/c0696ff)
merge | 合并master | [6886aef](https://github.com/luoxue-victor/learn_webpack/commit/6886aef)
react | 重新提交react | [97be6d3](https://github.com/luoxue-victor/learn_webpack/commit/97be6d3)
Expand Down
4 changes: 2 additions & 2 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
extends: ['./node_modules/vue-cli-plugin-commitlint/lib/lint', '@commitlint/config-conventional']
}
extends: ['./node_modules/vue-cli-plugin-commitlint/lib/lint']
};
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 25 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,17 @@
"version": "1.0.9",
"private": true,
"description": "webpack打包器",
"main": "index.js",
"workspaces": [
"packages/cli",
"packages/shared-utils",
"packages/webpack-box",
"packages/react"
],
"author": "jijiang",
"scripts": {
"dev": "webpack-box dev",
"build": "webpack-box build",
"info": "pk info",
"cr": "node tools/readme",
"cz": "npm run log && git add . && git cz",
"dev": "webpack-box dev",
"dev:dash": "webpack-dashboard -- webpack-box dev",
"log": "conventional-changelog --config ./node_modules/vue-cli-plugin-commitlint/lib/log -i CHANGELOG.md -s -r 0",
"cz": "npm run cr && npm run log && git add . && git cz",
"cr": "node tools/readme"
},
"repository": {
"type": "git",
"url": "git+https://github.com/luoxue-victor/learn_webpack.git"
},
"author": "jijiang",
"license": "ISC",
"bugs": {
"url": "https://github.com/luoxue-victor/learn_webpack/issues"
"info": "pk info",
"log": "conventional-changelog --config ./node_modules/vue-cli-plugin-commitlint/lib/log -i CHANGELOG.md -s -r 0"
},
"sideEffects": true,
"homepage": "https://github.com/luoxue-victor/learn_webpack#readme",
"main": "index.js",
"devDependencies": {
"@commitlint/config-conventional": "^8.2.0",
"commitizen": "^4.0.3",
Expand All @@ -39,19 +23,25 @@
"lerna": "^3.15.0",
"lint-staged": "^9.5.0",
"pk-cli-plugin-react": "^1.0.1",
"vue-cli-plugin-commitlint": "^1.0.10",
"webpack-box": "^1.1.2"
},
"bugs": {
"url": "https://github.com/luoxue-victor/learn_webpack/issues"
},
"config": {
"commitizen": {
"path": "./node_modules/vue-cli-plugin-commitlint/lib/cz"
}
},
"homepage": "https://github.com/luoxue-victor/learn_webpack#readme",
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"license": "ISC",
"lint-staged": {
"*.{vue,htm,html,css,sss,less,scss}": [
"webpack-box lint stylelint",
Expand All @@ -65,5 +55,16 @@
"webpack-box lint eslint",
"git add"
]
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/luoxue-victor/learn_webpack.git"
},
"sideEffects": true,
"workspaces": [
"packages/cli",
"packages/shared-utils",
"packages/webpack-box",
"packages/react"
]
}
1 change: 0 additions & 1 deletion packages/webpack-box/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@
"tslint": "^5.20.1",
"typescript": "^3.7.2",
"url-loader": "^3.0.0",
"vue-cli-plugin-commitlint": "^1.0.10",
"vue-template-compiler": "^2.6.10",
"webpack": "^4.41.2",
"webpack-bundle-analyzer": "^3.6.0",
Expand Down

0 comments on commit e4121e8

Please sign in to comment.