Skip to content

Commit

Permalink
chore: add commitlint, husky, release-it
Browse files Browse the repository at this point in the history
  • Loading branch information
nzambello committed Nov 22, 2022
1 parent 9622e7d commit 159098d
Show file tree
Hide file tree
Showing 4 changed files with 1,974 additions and 55 deletions.
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn commitlint --edit $1
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] };
52 changes: 48 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"version": "0.0.0",
"name": "@memori.ai/memori-react",
"author": "Memori Srl",
"main": "dist/index.js",
"module": "dist/memori-react.esm.js",
"typings": "dist/index.d.ts",
"files": [
"dist",
Expand All @@ -15,7 +18,7 @@
"test": "tsdx test --passWithNoTests",
"lint": "tsdx lint",
"stylelint": "stylelint \"src/**/*.css\"",
"prepare": "tsdx build",
"prepare": "is-ci || husky install; tsdx build",
"size": "size-limit",
"analyze": "size-limit --why",
"format": "prettier --write src",
Expand Down Expand Up @@ -83,9 +86,45 @@
]
}
},
"name": "@memori.ai/memori-react",
"author": "Memori Srl",
"module": "dist/memori-react.esm.js",
"release-it": {
"git": {
"tagName": "v${version}",
"commitMessage": "chore: release v${version}"
},
"npm": {
"publish": true
},
"github": {
"release": true,
"releaseName": "${version}"
},
"plugins": {
"@release-it/conventional-changelog": {
"infile": "CHANGELOG.md",
"preset": {
"name": "conventionalcommits",
"types": [
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "refactor",
"section": "Changes"
},
{
"type": "chore",
"section": "Maintenance"
}
]
}
}
}
},
"size-limit": [
{
"path": "dist/memori-react.cjs.production.min.js",
Expand All @@ -98,6 +137,9 @@
],
"devDependencies": {
"@babel/core": "7.20.2",
"@commitlint/cli": "17.3.0",
"@commitlint/config-conventional": "17.3.0",
"@release-it/conventional-changelog": "5.1.1",
"@size-limit/preset-small-lib": "8.1.0",
"@storybook/addon-essentials": "6.5.13",
"@storybook/addon-info": "5.3.21",
Expand All @@ -116,11 +158,13 @@
"eslint-plugin-jsx-a11y": "6.6.1",
"husky": "8.0.2",
"identity-obj-proxy": "3.0.0",
"is-ci": "3.0.1",
"jest": "29.3.1",
"postcss": "8.4.19",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-is": "18.2.0",
"release-it": "15.5.0",
"size-limit": "8.1.0",
"stylelint": "14.15.0",
"stylelint-config-idiomatic-order": "9.0.0",
Expand Down
Loading

0 comments on commit 159098d

Please sign in to comment.