Skip to content

Commit

Permalink
feat: update dependencies and reconfigure some
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobertolini committed Mar 18, 2023
1 parent aaec8d6 commit 5dc13d4
Show file tree
Hide file tree
Showing 8 changed files with 4,266 additions and 4,892 deletions.
3 changes: 3 additions & 0 deletions .commitlintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
}
5 changes: 5 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
. "$(dirname "$0")/common.sh"

yarn commitlint --edit
8 changes: 8 additions & 0 deletions .husky/common.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
command_exists () {
command -v "$1" >/dev/null 2>&1
}

# Windows 10, Git Bash and Yarn workaround
if command_exists winpty && test -t 1; then
exec < /dev/tty
fi
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
. "$(dirname "$0")/common.sh"

yarn lint-staged
5 changes: 5 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
. "$(dirname "$0")/common.sh"

yarn test
3 changes: 3 additions & 0 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
'*.{js,jsx,ts,tsx,md,json}': 'prettier --write',
}
46 changes: 14 additions & 32 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"dev": "microbundle watch --target browser --name remask",
"build": "microbundle build --target browser --name remask & tsc",
"release": "standard-version",
"prerelease": "yarn test && yarn build"
"prerelease": "yarn test && yarn build",
"prepare": "husky install"
},
"files": [
"dist/",
Expand All @@ -29,40 +30,21 @@
"type": "git",
"url": "https://github.com/brunobertolini/remask"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"lint-staged": {
"*.{{js,jsx,mjs,ts,tsx,md,mdx}}": [
"yarn lint",
"git add"
]
},
"devDependencies": {
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
"@babel/preset-env": "^7.7.4",
"@babel/preset-env": "^7.20.2",
"@babel/preset-typescript": "^7.21.0",
"@commitlint/cli": "^8.2.0",
"@commitlint/config-conventional": "^8.2.0",
"@commitlint/cli": "^17.4.4",
"@commitlint/config-conventional": "^17.4.4",
"babel": "^6.23.0",
"babel-cli": "^6.26.0",
"babel-jest": "^24.9.0",
"husky": "^3.1.0",
"jest": "^24.9.0",
"lint-staged": "^9.5.0",
"microbundle": "^0.11.0",
"prettier": "^1.19.1",
"standard-version": "^7.0.1",
"typescript": "^4.7.3"
},
"dependencies": {},
"peerDependencies": {}
"babel-jest": "^29.5.0",
"husky": "^8.0.3",
"jest": "^29.5.0",
"lint-staged": "^13.2.0",
"microbundle": "^0.15.1",
"prettier": "^2.8.4",
"standard-version": "^9.5.0",
"typescript": "^5.0.2"
}
}
9,083 changes: 4,223 additions & 4,860 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 5dc13d4

Please sign in to comment.