Skip to content

Commit

Permalink
feat(repo): add husky, commitlint, cz
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianjnuwu committed Dec 22, 2024
1 parent 798ac1f commit a5f6ad1
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit ${1}
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
npm run lint
npm run format

echo "Done!"
6 changes: 1 addition & 5 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {

Expand All @@ -8,10 +7,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:8.7.3'
classpath 'com.google.gms:google-services:4.4.2'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.google.gms:google-services:4.4.2'ssssss
}
}

Expand Down
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"] };
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"preview": "vite preview",
"copy": "npx cap copy",
"update": "npx cap update",
"sync": "npx cap sync"
"sync": "npx cap sync",
"prepare": "husky"
},
"dependencies": {
"@capacitor-community/admob": "^6.1.0",
Expand All @@ -28,8 +29,11 @@
"@babel/preset-env": "^7.26.0",
"@biomejs/biome": "1.9.4",
"@capacitor/cli": "^6.2.0",
"@commitlint/cli": "^19.6.1",
"@commitlint/config-conventional": "^19.6.0",
"babel-plugin-transform-remove-console": "^6.9.4",
"core-js": "^3.39.0",
"husky": "^9.1.7",
"typescript": "^5.7.2",
"vite": "^5.4.2",
"vite-plugin-babel": "^1.3.0"
Expand Down

0 comments on commit a5f6ad1

Please sign in to comment.