Skip to content

Commit

Permalink
Merge pull request #2091 from influxdata/chore/generation-add-typescr…
Browse files Browse the repository at this point in the history
…ipt-task

Add back typescript client generation task
  • Loading branch information
bthesorceror authored Dec 20, 2018
2 parents 9236fad + 03598b8 commit ff0d211
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ clean:
@for d in $(SUBDIRS); do $(MAKE) -C $$d clean; done
rm -rf bin

generate-typescript-client:
make -C http

define CHRONOGIRAFFE
._ o o
Expand Down
4 changes: 1 addition & 3 deletions http/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ clean: $(SUBDIRS)
GO_RUN := env GO111MODULE=on go run

../ui/src/api/api.ts: $(SOURCES)
cat cur_swagger.yml | $(GO_RUN) ../internal/yaml2json > openapi.json
openapi-generator generate -g typescript-axios -o ../ui/src/api -i openapi.json
rm openapi.json
openapi-generator generate -g typescript-axios -o ../ui/src/api -i cur_swagger.yml

.PHONY: all clean $(SUBDIRS)

0 comments on commit ff0d211

Please sign in to comment.