Skip to content

Commit

Permalink
Add gitattributes to make github ignore js files built using webpack (y…
Browse files Browse the repository at this point in the history
…arnpkg#236)

* Add gitattributes to tell github which files to ignore

* Mark built lib files as generated
  • Loading branch information
bgotink authored and arcanis committed Jun 16, 2019
1 parent ef0d8b0 commit 454e36f
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@
/.pnp.js binary
# This line does two things:
# - enable git's CRLF -> LF modification
# - tell git to guess whether files are text or binary
* text=auto

# Mark .pnp.js as binary to prevent git from trying to merge it
/.pnp.js binary linguist-generated

# Set the language for these files to json5 to ensure GitHub doesn't show the comments as errors
/.vscode/*.json linguist-language=JSON5

# Hide .yarn and docs from GitHub's language detection
/.yarn/** linguist-vendored
/docs/** linguist-documentation

# Mark built javascript binaries as generated
# Without this, the repo is marked as >90% javascript, while most code is actually typescript
/packages/*/bin/**/*.js linguist-generated
/packages/*/lib/*.js linguist-generated

0 comments on commit 454e36f

Please sign in to comment.