feat(dev): add air live-reload with make watch
This commit is contained in:
@@ -2,7 +2,7 @@ BINARY := nib
|
||||
MODULE := github.com/lerko/nib
|
||||
GOFLAGS := -trimpath
|
||||
|
||||
.PHONY: build dev test lint fmt vet clean run help
|
||||
.PHONY: build dev watch test lint fmt vet clean run help
|
||||
|
||||
## —— Build ——————————————————————————————————
|
||||
|
||||
@@ -12,6 +12,9 @@ build: ## Build production binary
|
||||
dev: ## Build and run with default serve
|
||||
go run . serve
|
||||
|
||||
watch: ## Live-reload dev server (requires air)
|
||||
air
|
||||
|
||||
## —— Quality ————————————————————————————————
|
||||
|
||||
test: ## Run all tests
|
||||
|
||||
Reference in New Issue
Block a user