Skip to content

Commit

Permalink
feat(make): use air for dev mode (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfalkowski authored Dec 10, 2024
1 parent cf4a7d3 commit 37efa59
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions build/make/grpc.mak
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@ build:
build-test:
go test -vet=off -race -ldflags="-X 'github.com/alexfalkowski/$(NAME)/cmd.Version=latest'" -mod vendor -c -tags features -covermode=atomic -o $(NAME) -coverpkg=./... github.com/alexfalkowski/$(NAME)

# Run in dev mode.
dev:
air --build.cmd "make build" --build.bin "./$(NAME) server -i file:test/.config/server.yml" --build.exclude_dir "test/vendor,vendor,bin"

# Build docker image.
build-docker:
bin/build/docker/build $(NAME)
Expand Down
2 changes: 1 addition & 1 deletion build/make/http.mak
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ build-test:

# Run in dev mode.
dev:
find . -name '*.go' -o -name '*.html' | entr -r go run main.go -i file:test/.config/server.yml server
air --build.cmd "make build" --build.bin "./$(NAME) server -i file:test/.config/server.yml" --build.exclude_dir "test/vendor,vendor,bin"

# Build docker image.
build-docker:
Expand Down

0 comments on commit 37efa59

Please sign in to comment.