-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (21 loc) · 821 Bytes
/
Makefile
File metadata and controls
27 lines (21 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.PHONY: build test install clean ui
BINARY_NAME = workflow-plugin-admin
INSTALL_DIR ?= data/plugins/$(BINARY_NAME)
build:
go build -o bin/$(BINARY_NAME) ./cmd/$(BINARY_NAME)
test:
go test ./... -v -race
install: build
mkdir -p $(DESTDIR)/$(INSTALL_DIR)
cp bin/$(BINARY_NAME) $(DESTDIR)/$(INSTALL_DIR)/
cp plugin.json $(DESTDIR)/$(INSTALL_DIR)/
cp plugin.contracts.json $(DESTDIR)/$(INSTALL_DIR)/
cp -R internal/ui_dist $(DESTDIR)/$(INSTALL_DIR)/
clean:
rm -rf bin/
ui:
@echo "Building admin UI from workflow repo..."
cd /tmp && rm -rf workflow-ui-build && git clone --depth 1 git@github.com:GoCodeAlone/workflow.git workflow-ui-build
cd /tmp/workflow-ui-build/ui && npm ci && npx vite build
rm -rf internal/ui_dist && cp -r /tmp/workflow-ui-build/ui/dist internal/ui_dist
rm -rf /tmp/workflow-ui-build