Skip to content

Commit 47a4359

Browse files
committed
types: add generated code from proto compilation to git
To remove the need for installing protoc for building the source from scratch, we check in the generated JavaScript and TypeScript code that is compiled from the *.proto files. We will make sure the protos and generated files are in sync with the help of a GitHub Action. By adding a .gitattributes file we also make sure the committed generated JS code does not count towards GitHub's language statistics of the repo.
1 parent f0be051 commit 47a4359

26 files changed

+84017
-3
lines changed

.gitattributes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Instruct the GitHub linguist tool to interpret the generated JS code as just
2+
# that, generated. This will make sure the JS (and TS types for that matter)
3+
# will not show up in the repository's language statistics.
4+
5+
app/src/types/generated* linguist-generated

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# generated proto scripts
2-
/app/src/types/generated
3-
41
# local environment vars to ignore
52
.env*.local
63

0 commit comments

Comments
 (0)