Skip to content

Commit 454e36f

Browse files
bgotinkarcanis
authored andcommitted
Add gitattributes to make github ignore js files built using webpack (#236)
* Add gitattributes to tell github which files to ignore * Mark built lib files as generated
1 parent ef0d8b0 commit 454e36f

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.gitattributes

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,19 @@
1-
/.pnp.js binary
1+
# This line does two things:
2+
# - enable git's CRLF -> LF modification
3+
# - tell git to guess whether files are text or binary
4+
* text=auto
5+
6+
# Mark .pnp.js as binary to prevent git from trying to merge it
7+
/.pnp.js binary linguist-generated
8+
9+
# Set the language for these files to json5 to ensure GitHub doesn't show the comments as errors
10+
/.vscode/*.json linguist-language=JSON5
11+
12+
# Hide .yarn and docs from GitHub's language detection
13+
/.yarn/** linguist-vendored
14+
/docs/** linguist-documentation
15+
16+
# Mark built javascript binaries as generated
17+
# Without this, the repo is marked as >90% javascript, while most code is actually typescript
18+
/packages/*/bin/**/*.js linguist-generated
19+
/packages/*/lib/*.js linguist-generated

0 commit comments

Comments
 (0)