Skip to content

Commit

Permalink
chore: use commitlint, run lint and test pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
pscanf committed Jan 4, 2018
1 parent 194e842 commit 28b18f0
Show file tree
Hide file tree
Showing 3 changed files with 279 additions and 17 deletions.
6 changes: 6 additions & 0 deletions commitlint.config.js
@@ -0,0 +1,6 @@
module.exports = {
extends: [
"@commitlint/config-conventional",
"@commitlint/config-lerna-scopes"
]
};
6 changes: 6 additions & 0 deletions package.json
Expand Up @@ -22,14 +22,20 @@
"url": "https://github.com/staticdeploy/staticdeploy/issues"
},
"scripts": {
"precommit": "yarn lint && yarn test",
"commitmsg": "commitlint -e $GIT_PARAMS",
"compile": "lerna run compile --stream --concurrency 1",
"lint": "lerna run lint --stream --concurrency 1",
"test": "lerna run test --stream --concurrency 1",
"coverage": "nyc --all yarn test",
"publish-coverage": "codecov"
},
"devDependencies": {
"@commitlint/cli": "^5.2.8",
"@commitlint/config-conventional": "^5.2.3",
"@commitlint/config-lerna-scopes": "^5.2.7",
"codecov": "^3.0.0",
"husky": "^0.14.3",
"lerna": "^2.5.1",
"nyc": "^11.4.1"
}
Expand Down

0 comments on commit 28b18f0

Please sign in to comment.