mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-17 21:37:35 +00:00
84f0e24c63
* initital ide * init * it is alive * go test is running * wip with buildkit * it definitly alive * all done, now the github actions * pretty * before i delete the generated proto stub * delete generated code * mount of grpc does not yet work * save before * level of insanity 1000% * huhur * gh action new dockerfile * fix * fix * fix * fix * amd64 only * try caching * try with reg * test with artifact upload * trial * add comments * publish branchname * correct vars * correct id * mode max for cache * remove unused code * cleanup * test action which uploads coverage * use * proper path * debug file location * path * test if ci still works * correct docker file name
42 lines
1.2 KiB
Bash
Executable File
42 lines
1.2 KiB
Bash
Executable File
#! /bin/sh
|
|
|
|
set -eux
|
|
|
|
GEN_PATH=src/app/proto/generated
|
|
|
|
echo "Create folders"
|
|
mkdir -p $GEN_PATH
|
|
|
|
echo "Generate grpc"
|
|
|
|
protoc \
|
|
-I=.tmp/protos/message \
|
|
-I=.tmp/protos/admin/proto \
|
|
-I=.tmp/protos/management/proto \
|
|
-I=.tmp/protos/auth/proto \
|
|
-I=node_modules/google-proto-files \
|
|
-I=.tmp/protos \
|
|
--js_out=import_style=commonjs,binary:$GEN_PATH \
|
|
--grpc-web_out=import_style=commonjs+dts,mode=grpcweb:$GEN_PATH \
|
|
.tmp/protos/message/proto/*.proto \
|
|
.tmp/protos/admin/proto/*.proto \
|
|
.tmp/protos/auth/proto/*.proto \
|
|
.tmp/protos/management/proto/*.proto
|
|
|
|
echo "Generate annotations js file (compatibility)"
|
|
|
|
mkdir -p $GEN_PATH/google/api/
|
|
touch $GEN_PATH/google/api/annotations_pb.js
|
|
echo "export {}" > $GEN_PATH/google/api/annotations_pb.d.ts
|
|
|
|
mkdir -p $GEN_PATH/validate
|
|
touch $GEN_PATH/validate/validate_pb.js
|
|
echo "export {}" > $GEN_PATH/validate/validate_pb.d.ts
|
|
|
|
mkdir -p $GEN_PATH/protoc-gen-swagger/options
|
|
touch $GEN_PATH/protoc-gen-swagger/options/annotations_pb.js
|
|
echo "export {}" > $GEN_PATH/protoc-gen-swagger/options/annotations_pb.d.ts
|
|
|
|
mkdir -p $GEN_PATH/authoption
|
|
touch $GEN_PATH/authoption/options_pb.js
|
|
echo "export {}" > $GEN_PATH/authoption/options_pb.d.ts |