Skip to content

Commit

Permalink
chore: run mrm to configure
Browse files Browse the repository at this point in the history
  • Loading branch information
bingtsingw committed Aug 20, 2022
1 parent 907b1b3 commit 44af4ec
Show file tree
Hide file tree
Showing 6 changed files with 845 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .husky/commit-msg
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit "${1}"
npx --no -- commitlint --edit $1
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ node_modules
.editorconfig

# ignore artifacts
CHANGELOG.md
build
coverage
dist
Expand Down
25 changes: 23 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,36 @@
"mrm-core": "^7.0.0"
},
"devDependencies": {
"@bingtsingw/mrm-preset": "^0.1.0",
"@bingtsingw/mrm-preset": "^0.2.1",
"@commitlint/cli": "^17.0.3",
"@commitlint/config-conventional": "^17.0.3",
"@release-it/conventional-changelog": "^5.1.0",
"commitizen": "^4.2.5",
"cz-conventional-changelog": "^3.3.0",
"husky": "^8.0.1",
"lint-staged": "^13.0.3",
"mrm": "^4.0.0",
"prettier": "^2.7.1",
"release-it": "^15.3.0"
},
"scripts": {
"mrm": "mrm --preset=@bingtsingw/mrm-preset",
"format": "prettier --check .",
"format:fix": "prettier --write ."
"format:fix": "prettier --write .",
"prepare": "if [ -d './node_modules/husky' ]; then husky install; fi",
"commit": "cz"
},
"lint-staged": {
"**/*.{js,ts,html,css,md,json}": "prettier --check"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
}
}
Loading

0 comments on commit 44af4ec

Please sign in to comment.