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

fix .gitlab-ci.yml

parent 881ec5f6
No related branches found
No related tags found
1 merge request!1Добавлена генерация файлов для frontend в Makefile и публикацию npm-пакета
Pipeline #19081 failed with stage
in 18 seconds
......@@ -20,8 +20,6 @@ publish_npm:
- mkdir config/clients
- make proto
- cd ./config
- cd ./clients
- ls
- NPM_PACKAGE_VERSION=$(node -p "require('./package.json').version")
- yarn pub
- echo "Successfully published version ${NPM_PACKAGE_VERSION} to GitLab's NPM registry"
......
......@@ -17,11 +17,10 @@ TSC_MIC_VERSION=$(shell tsc --version | awk '{print $$2;}' | cut -d. -f3)
# Генерация js
proto: proto-js
proto-js: protoc-check js-check generate-js $(PROTOTSFILES)
proto-js: protoc-check js-check $(PROTOTSFILES) generate-js
@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 \
......
......@@ -78,5 +78,7 @@ echo "---deleting created tmp files"
npm uninstall protobufjs@6.11.3
find ./config/clients -name 'index.ts' -delete
find ./config/clients/*/** -name 'index.ts' -delete
find ./ -maxdepth 1 -name '*.json' -delete
find ./ -maxdepth 1 -name '*.ts' -delete
echo "---process finished"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment