Skip to content

Commit a8f2332

Browse files
authored
Merge pull request #31 from sagarkhanal07/refactor/conventional-commits
2 parents 5d27710 + 581e295 commit a8f2332

File tree

8 files changed

+711
-97
lines changed

8 files changed

+711
-97
lines changed

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
yarn commitlint ${1}

App.tsx

Lines changed: 0 additions & 20 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,13 @@ This project is highly inspired by [next-enterprise](https://github.com/Blazity/
88
- [x] 🎯 Absolute imports - For better imports and code organization
99
- [x] 📝 Conventional commits git hook - For enforcing conventional commits
1010
- [x] 🤖 Renovate BOT - For keeping dependencies up to date
11-
- [x] 🛠️ Extremely strict TypeScript - With ts-reset library for ultimate type safety
11+
- [x] 🛠️ Improved TypeScript - With ts-reset library for ultimate type safety
1212
- [x] 🩹 Patch-package - For patching dependencies
1313
- [x] 💻 T3 Env - For environment variables management
1414
- [x] 📊 Bundle analyzer plugin - For analyzing bundle size
1515
- [ ] 🧪 Jest and React Testing Library - For testing components and features
1616
- [x] 📕 Storybook - For isolating and testing UI components
1717
- [x] 📈 Components coupling and cohesion graph - For analyzing components relations
18-
- [ ] 🚀 GitHub Actions - For CI/CD automation
1918
- [x] 🤖🧠 Automated ChatGPT Code Reviews - For improving code quality and AI assistance code reviews
2019
- [ ] 🚢 Semantic Release - For automated versioning and CHANGELOG generation
2120
- [x] 🗄️ Auto Sort Imports - Automatic organizing of imports on file saves.
@@ -37,7 +36,7 @@ Preconfigured by default.
3736

3837
### Conventional Commits
3938

40-
Configured with [git-conventioanl-commits](https://github.com/qoomon/git-conventional-commits) to automatically validate commit messages following the [conventional-commits](https://www.conventionalcommits.org/en/v1.0.0/) standard.
39+
Configured with [commitlint](https://github.com/conventional-changelog/commitlint) to automatically validate commit messages following the [conventional-commits](https://www.conventionalcommits.org/en/v1.0.0/) standard.
4140

4241
### TS-Reset | Extremely Strict Typescript
4342

commitlint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = { extends: ['@commitlint/config-conventional'] };

git-conventional-commits.yaml

Lines changed: 0 additions & 43 deletions
This file was deleted.

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212
"lint:fix": "eslint --fix .",
1313
"format": "prettier --write .",
1414
"analyze:bundle": "react-native-bundle-visualizer --only-mapped --entry-file ./index.js --bundle-output ./rn.bundle --expo",
15-
"coupling-graph": "npx skott index.js",
15+
"coupling-graph": "npx skott src/pages/HomePage.tsx",
1616
"prepare": "husky install",
1717
"storybook-generate": "sb-rn-get-stories",
18-
"storybook-watch": "sb-rn-watcher"
18+
"storybook-watch": "sb-rn-watcher",
19+
"commitlint": "commitlint --edit"
1920
},
2021
"dependencies": {
2122
"@t3-oss/env-core": "^0.6.1",
@@ -27,6 +28,8 @@
2728
},
2829
"devDependencies": {
2930
"@babel/core": "^7.20.0",
31+
"@commitlint/cli": "^17.7.1",
32+
"@commitlint/config-conventional": "^17.7.0",
3033
"@react-native-async-storage/async-storage": "1.18.2",
3134
"@react-native-community/datetimepicker": "7.2.0",
3235
"@react-native-community/slider": "4.4.2",

src/components/Button/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const Button = ({ onPress, text, type = 'default' }: ButtonProps) => {
1515
const color = type === 'default' ? 'white' : 'black';
1616
return (
1717
<TouchableOpacity
18-
style={type === 'default' ? styles.default : styles.transparent}
18+
style={styles[type]}
1919
onPress={onPress}
2020
activeOpacity={0.8}
2121
>

0 commit comments

Comments
 (0)