From 41d42c6f7360de721463d02dc2b6d7290ec89372 Mon Sep 17 00:00:00 2001 From: Ken Hibino Date: Fri, 15 Oct 2021 11:22:31 -0700 Subject: [PATCH] Update Makefile --- .gitignore | 3 ++- Makefile | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 946902a..316c0ed 100644 --- a/.gitignore +++ b/.gitignore @@ -23,8 +23,9 @@ package-json.lock # Output of the go coverage tool, specifically when used with LiteIDE *.out -# main binary +# binaries asynqmon +api dist/ # Editor configs diff --git a/Makefile b/Makefile index 6738c47..bf9835b 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,15 @@ -.PHONY: assets build docker +.PHONY: api assets build docker NODE_PATH ?= $(PWD)/ui/node_modules assets: @if [ ! -d "$(NODE_PATH)" ]; then cd ./ui && yarn install --modules-folder $(NODE_PATH); fi cd ./ui && yarn build --modules-folder $(NODE_PATH) +# This target skips the overhead of building UI assets. +# Intended to be used during development. +api: + go build -o api ./cmd/asynqmon + # Build a release binary. build: assets go build -o asynqmon ./cmd/asynqmon