-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (35 loc) · 843 Bytes
/
Copy pathMakefile
File metadata and controls
45 lines (35 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
commit:
@./assets/sh/commit.sh
generate:
@git add -A && ./assets/sh/commit.sh --dry-run && git reset -q
push:
@make format
@make lint
@make test
@git add -A
@make commit
# @curl -fsSL https://commit.jaw.dev/ | bash
@git push --no-verify
dev:
@export $$(grep -v '^#' .env | xargs) && go run github.com/cosmtrek/air@v1.43.0 \
--build.cmd "make build" --build.bin "./commit" --build.delay "100" \
--build.exclude_dir "" \
--build.include_ext "go, tpl, tmpl, html, css, scss, js, ts, sql, jpeg, jpg, gif, png, bmp, svg, webp, ico, md" \
--misc.clean_on_exit "true"
build:
@go build -o ./commit ./cmd
run: build
@./commit
clean:
@rm -f commit*
test:
@go test ./...
lint:
@go vet ./...
format:
@go mod tidy -v
@go fmt ./...
fix_git:
@git rm -r --cached .
@git add .
@git commit -m "Untrack files in .gitignore"