Skip to content

Commit

Permalink
fix(semantic-release): add semantic release and commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
morewings committed Apr 20, 2024
1 parent afeb6a0 commit cbea74c
Show file tree
Hide file tree
Showing 10 changed files with 1,468 additions and 2,955 deletions.
3 changes: 3 additions & 0 deletions .czrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "./node_modules/cz-conventional-changelog"
}
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx commitlint --edit "$1"
4 changes: 2 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
npx lint-staged
npm run lint:types
pnpm run lint-staged
pnpm run lint:types
2 changes: 1 addition & 1 deletion .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#CI=true yarn test --passWithNoTests --silent
CI=true pnpm run test --passWithNoTests --silent
1 change: 1 addition & 0 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exec < /dev/tty && node_modules/.bin/cz --hook || true
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18
v20
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default {extends: ['@commitlint/config-conventional']};
18 changes: 13 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,8 @@
"lint:types": "tsc --pretty --noEmit",
"test": "jest",
"preview": "vite preview",
"start:docs": "storybook dev -p 6006",
"build:docs": "storybook build",
"generate:component": "npx generate-react-cli component",
"prepare": "is-ci || husky"
"prepare": "is-ci || husky",
"lint-staged": "lint-staged"
},
"peerDependencies": {
"react": ">=18.2.0",
Expand All @@ -46,6 +44,13 @@
"lodash": "^4.17.21"
},
"devDependencies": {
"@commitlint/cli": "19.2.1",
"@commitlint/config-conventional": "19.1.0",
"@semantic-release/commit-analyzer": "^12.0.0",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^10.0.0",
"@semantic-release/npm": "^12.0.0",
"@semantic-release/release-notes-generator": "^13.0.0",
"@testing-library/jest-dom": "6.4.2",
"@testing-library/react": "14.2.2",
"@types/jest": "29.5.12",
Expand All @@ -57,6 +62,9 @@
"@vitejs/plugin-react": "4.2.1",
"@yelo/rollup-node-external": "^1.0.1",
"alias-hq": "6.2.3",
"commitizen": "4.3.0",
"commitlint": "19.2.1",
"cz-conventional-changelog": "3.3.0",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.29.1",
Expand All @@ -66,7 +74,6 @@
"eslint-plugin-react-refresh": "0.4.6",
"eslint-plugin-ssr-friendly": "1.3.0",
"eslint-plugin-storybook": "0.8.0",
"generate-react-cli": "^8.4.1",
"husky": "9.0.11",
"identity-obj-proxy": "3.0.0",
"is-ci": "3.0.1",
Expand All @@ -79,6 +86,7 @@
"prettier": "3.2.5",
"react": "18.2.0",
"react-dom": "18.2.0",
"semantic-release": "23.0.6",
"ts-jest": "29.1.2",
"ts-node": "10.9.2",
"typescript": "5.3.3",
Expand Down
Loading

0 comments on commit cbea74c

Please sign in to comment.