Skip to content

Commit

Permalink
feat: segregate configuration of each build format
Browse files Browse the repository at this point in the history
this changes how the configuration is structured, it separates the configurations into separate
config based on the build format

BREAKING CHANGE: the configuration structure changes
  • Loading branch information
teclone committed Jun 27, 2024
1 parent 5ff44d8 commit fc5d7cd
Show file tree
Hide file tree
Showing 6 changed files with 2,328 additions and 1,856 deletions.
3 changes: 3 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn commitlint --edit $1
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

# run test:precommit when ready
# npx lint-staged && yarn test:precommit
4 changes: 4 additions & 0 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

exec < /dev/tty && npx cz --hook || true
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'] }
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"bin"
],
"scripts": {
"prepare": "husky install",
"compile": "tsc --noEmit",
"commit": "git-cz",
"test": "BABEL_ENV=test jest --runInBand",
Expand Down Expand Up @@ -43,22 +44,25 @@
"homepage": "https://github.com/teclone/rollup-all#readme",
"devDependencies": {
"@babel/cli": "7.12.17",
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@types/jest": "25.2.3",
"@types/react": "^17.0.2",
"@types/react-dom": "^17.0.1",
"@typescript-eslint/eslint-plugin": "2.34.0",
"@typescript-eslint/parser": "2.34.0",
"babel-jest": "^26.6.3",
"commitizen": "4.1.2",
"commitizen": "^4.3.0",
"coveralls": "3.1.0",
"cz-conventional-changelog": "3.2.0",
"cz-conventional-changelog": "^3.3.0",
"husky": "^9.0.11",
"jest": "26.0.1",
"semantic-release": "^17.3.9",
"semantic-release-cli": "^5.4.3"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
"path": "./node_modules/cz-conventional-changelog"
}
},
"dependencies": {
Expand Down
Loading

0 comments on commit fc5d7cd

Please sign in to comment.