Skip to content

Commit

Permalink
chore: revert to old generate.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
shifty11 committed Oct 18, 2023
1 parent b8294c8 commit 089ddbf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 25 deletions.
6 changes: 0 additions & 6 deletions proto/buf.gen.ts.yaml

This file was deleted.

26 changes: 7 additions & 19 deletions proto/generate.sh
Original file line number Diff line number Diff line change
@@ -1,22 +1,10 @@
# set arg1 to "ts" to generate typescript code

cd proto || exit 1

if [ "$1" = "ts" ]; then
echo "Generating typescript code"
template="buf.gen.ts.yaml"
else
echo "Generate go code and docs"
template="buf.gen.yaml"
fi

buf generate --template $template
cd proto
buf generate
cd ..

if [ "$1" != "ts" ]; then
cp -r github.com/KYVENetwork/chain/* ./
swagger-combine ./docs/config.json -o ./docs/swagger.yml
rm -rf tmp-swagger-gen
fi

cp -r github.com/KYVENetwork/chain/* ./
rm -rf github.com

swagger-combine ./docs/config.json -o ./docs/swagger.yml
rm -rf tmp-swagger-gen
d

0 comments on commit 089ddbf

Please sign in to comment.