mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-10-07 12:42:00 +08:00
Update Makefile
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -23,8 +23,9 @@ package-json.lock
|
|||||||
# Output of the go coverage tool, specifically when used with LiteIDE
|
# Output of the go coverage tool, specifically when used with LiteIDE
|
||||||
*.out
|
*.out
|
||||||
|
|
||||||
# main binary
|
# binaries
|
||||||
asynqmon
|
asynqmon
|
||||||
|
api
|
||||||
dist/
|
dist/
|
||||||
|
|
||||||
# Editor configs
|
# Editor configs
|
||||||
|
7
Makefile
7
Makefile
@@ -1,10 +1,15 @@
|
|||||||
.PHONY: assets build docker
|
.PHONY: api assets build docker
|
||||||
|
|
||||||
NODE_PATH ?= $(PWD)/ui/node_modules
|
NODE_PATH ?= $(PWD)/ui/node_modules
|
||||||
assets:
|
assets:
|
||||||
@if [ ! -d "$(NODE_PATH)" ]; then cd ./ui && yarn install --modules-folder $(NODE_PATH); fi
|
@if [ ! -d "$(NODE_PATH)" ]; then cd ./ui && yarn install --modules-folder $(NODE_PATH); fi
|
||||||
cd ./ui && yarn build --modules-folder $(NODE_PATH)
|
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 a release binary.
|
||||||
build: assets
|
build: assets
|
||||||
go build -o asynqmon ./cmd/asynqmon
|
go build -o asynqmon ./cmd/asynqmon
|
||||||
|
Reference in New Issue
Block a user