Skip to content

Commit 5c22a9c

Browse files
committed
chore: migrate from husky to simple-git-hooks
see creasico/laravel-project#58 Signed-off-by: Fery Wardiyanto <ferywardiyanto@gmail.com>
1 parent a842a04 commit 5c22a9c

File tree

5 files changed

+2171
-13
lines changed

5 files changed

+2171
-13
lines changed

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ Desktop.ini
66
.DS_Store
77
._*
88
*.cache
9+
*.crt
910
*.log
1011
*.old
12+
*.key
1113
*.pem
1214
*.tmp
1315
*.zip
@@ -21,17 +23,16 @@ Desktop.ini
2123
coveralls-upload.json
2224
dist
2325
node_modules
24-
storage/*.key
25-
tests/clover.xml
2626
vendor
2727

2828
# Node.js lock files
29+
.pnpm-store
2930
package-lock.json
3031
yarn.lock
31-
pnpm-lock.yaml
3232

3333
# But Keep these
3434
# --------------------------
3535
!.env.example
36+
!.env.*.example
3637
!.htaccess
3738
!.gitkeep

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"devDependencies": {
1212
"@commitlint/cli": "^17.7.1",
1313
"@commitlint/config-conventional": "^17.7.0",
14-
"husky": "^8.0.3",
1514
"lint-staged": "^13.3.0",
15+
"simple-git-hooks": "^2.9.0",
1616
"standard-version": "^9.5.0"
1717
},
1818
"commitlint": {
@@ -25,5 +25,9 @@
2525
"php vendor/bin/pint --preset laravel"
2626
]
2727
},
28+
"simple-git-hooks": {
29+
"commit-msg": "pnpm exec commitlint --edit $1",
30+
"pre-commit": "pnpm exec lint-staged --allow-empty"
31+
},
2832
"standard-version": {}
2933
}

0 commit comments

Comments
 (0)