Skip to content

Commit

Permalink
update codegen.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinebou12 committed Mar 10, 2020
1 parent ed67fe0 commit 922b41a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions codegen.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#!/bin/bash
set -e

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

OUT_DIR="$DIR/proto/proto"
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
OUT_DIR="$SCRIPT_DIR/proto/proto"

mkdir -p "$OUT_DIR" || true

Expand All @@ -12,4 +11,5 @@ protoc \
proto/*.proto \
--go_out="plugins=grpc:$OUT_DIR"

cd website && npm run codegen
cd website || exit
npm run codegen
Empty file removed website/.gitignore
Empty file.

0 comments on commit 922b41a

Please sign in to comment.