Skip to content
Snippets Groups Projects
Commit 524a9e33 authored by Will McCutchen's avatar Will McCutchen
Browse files

Add `make watch` command

parent 319ccd38
No related branches found
No related tags found
No related merge requests found
...@@ -95,6 +95,9 @@ gcloud-auth: ...@@ -95,6 +95,9 @@ gcloud-auth:
run: build run: build
$(DIST_PATH)/go-httpbin $(DIST_PATH)/go-httpbin
watch: $(TOOL_REFLEX)
reflex -s -r '\.(go|html)$$' make run
# ============================================================================= # =============================================================================
# docker images # docker images
...@@ -111,13 +114,14 @@ imagepush: image ...@@ -111,13 +114,14 @@ imagepush: image
# #
# Deps are installed outside of working dir to avoid polluting go modules # Deps are installed outside of working dir to avoid polluting go modules
# ============================================================================= # =============================================================================
deps: $(TOOL_GOBINDATA) $(TOOL_GOLINT) $(TOOL_STATICCHECK)
$(TOOL_GOBINDATA): $(TOOL_GOBINDATA):
cd /tmp && go get -u github.com/kevinburke/go-bindata/... cd /tmp && go get -u github.com/kevinburke/go-bindata/...
$(TOOL_GOLINT): $(TOOL_GOLINT):
cd /tmp && go get -u golang.org/x/lint/golint cd /tmp && go get -u golang.org/x/lint/golint
$(TOOL_REFLEX):
cd /tmp && go get -u github.com/cespare/reflex
$(TOOL_STATICCHECK): $(TOOL_STATICCHECK):
cd /tmp && go get -u honnef.co/go/tools/cmd/staticcheck cd /tmp && go get -u honnef.co/go/tools/cmd/staticcheck
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment