Make client generation optional via ENV variable

pull/10616/head
Brandon Farmer 2019-01-03 11:33:23 -08:00
parent 78744e4b0e
commit 547a147d6b
2 changed files with 2 additions and 1 deletions

View File

@ -40,7 +40,6 @@ UISOURCES := $(shell find ui -type f -not \( -path ui/build/\* -o -path ui/node_
# All precanned dashboards # All precanned dashboards
PRECANNED := $(shell find chronograf/canned -name '*.json') PRECANNED := $(shell find chronograf/canned -name '*.json')
# List of binary cmds to build # List of binary cmds to build
CMDS := \ CMDS := \
bin/$(GOOS)/influx \ bin/$(GOOS)/influx \

View File

@ -19,7 +19,9 @@ clean: $(SUBDIRS)
GO_RUN := env GO111MODULE=on go run GO_RUN := env GO111MODULE=on go run
ifndef SKIP_CLIENT
../ui/src/api/api.ts: $(SOURCES) ../ui/src/api/api.ts: $(SOURCES)
openapi-generator generate -g typescript-axios -o ../ui/src/api -i cur_swagger.yml openapi-generator generate -g typescript-axios -o ../ui/src/api -i cur_swagger.yml
endif
.PHONY: all clean $(SUBDIRS) .PHONY: all clean $(SUBDIRS)