Skip to content
Snippets Groups Projects
Commit fc6ae393 authored by ko_oler's avatar ko_oler
Browse files

fix .gitlab-ci.yml

parent c7e849c6
No related branches found
No related tags found
1 merge request!1Добавлена генерация файлов для frontend в Makefile и публикацию npm-пакета
......@@ -7,7 +7,6 @@ DSTDIR=config/clients
ALLPROTO?=$(shell find $(PROTODIR) -name '*.proto' )
PROTOFILES= $(filter-out proto/status/status.proto, $(ALLPROTO))
PROTOTSFILES=$(ALLPROTO:.proto=.ts)
PROTOJSFILES=$(PROTOFILES:.proto=_pb.js)
PROTOC_MAJOR_VERSION=$(shell protoc --version | awk '{print $$2;}' | cut -d. -f1)
PROTOC_MINOR_VERSION=$(shell protoc --version | awk '{print $$2;}' | cut -d. -f2)
......@@ -22,6 +21,7 @@ proto-js: protoc-check js-check generate-js $(PROTOTSFILES)
@echo "Generated all protobuf JavaScrypt files"
%.ts: %.proto
@echo "Generating ts files"
@protoc -I=$(PROTODIR) \
--plugin=@protoc-gen-ts_proto \
--ts_proto_opt=env=browser,outputServices=generic-definitions,outputJsonMethods=false,esModuleInterop=true,useOptionals=messages,exportCommonSymbols=false,useDate=false,useExactTypes=false \
......@@ -32,7 +32,7 @@ generate-js:
@./config/generate.sh
proto-clean:
@rm -f $(PROTOTSFILES) -f $(PROTOJSFILES)
@rm -f $(PROTOTSFILES)
.FORCE:
# Проверка, что установлены необходимые инструменты для генерации proto-файлов
......
......@@ -98,5 +98,6 @@
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
"skipLibCheck": true /* Skip type checking all .d.ts files. */
},
"include": ["./clients"],
"include": ["../clients/**/*"],
"exclude": ["../config/**/*"]
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment