Skip to content

Commit

Permalink
Merge pull request #2 from troychaplin/feature/commtLint
Browse files Browse the repository at this point in the history
Feature/commt lint
  • Loading branch information
troychaplin authored Feb 24, 2024
2 parents 306bba6 + 795eedc commit 4dcd2fb
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
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"

npx commitlint --edit $1
7 changes: 7 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# npm test

#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn build
# npm run build
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,17 @@
"build": "tsc && vite build",
"build:storybook": "storybook build",
"prettier": "prettier --write .",
"rebuild": "rn -rf node_modules ; npm install"
"rebuild": "rn -rf node_modules ; npm install",
"test": "echo \"No test specified\" && exit 0",
"prepare": "husky"
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@commitlint/cli": "^18.6.1",
"@commitlint/config-conventional": "^18.6.2",
"@storybook/addon-essentials": "^7.6.17",
"@storybook/addon-interactions": "^7.6.17",
"@storybook/addon-links": "^7.6.17",
Expand All @@ -60,6 +64,7 @@
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.5",
"eslint-plugin-storybook": "^0.8.0",
"husky": "^9.0.11",
"postcss": "^8.4.35",
"prettier": "^3.2.5",
"storybook": "^7.6.17",
Expand Down

0 comments on commit 4dcd2fb

Please sign in to comment.