Skip to content

Commit 9f057c9

Browse files
author
Vitor Hugo Salgado
committed
build: add commitlint + husky + makefile
1 parent c9db608 commit 9f057c9

File tree

5 files changed

+1762
-60
lines changed

5 files changed

+1762
-60
lines changed

.husky/commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no -- commitlint --edit ""

Makefile

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.DEFAULT_GOAL := help
2+
.PHONY: help
3+
help: ## show help
4+
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
5+
6+
.PHONY: prepare
7+
prepare: ## prepare development environment
8+
@npm i
9+
@npx husky install

commitlint.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
'use strict'
2+
3+
module.exports = {
4+
extends: ['@commitlint/config-conventional']
5+
}

0 commit comments

Comments
 (0)