Skip to content

Count the frontend in GitHub's language stats - #8

Merged
royalpriest merged 1 commit into
mainfrom
chore/gitattributes
Nov 21, 2026
Merged

royalpriest merged 1 commit into
mainfrom
chore/gitattributes

Conversation

@royalpriest

@royalpriest royalpriest commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

GitHub's Languages bar showed 100% Ruby. This adds a .gitattributes file so GitHub counts the React frontend.

  • It marks frontend/ as not vendored and not generated.
  • It marks the TypeScript, TSX and CSS files under frontend/src as detectable.
  • It marks package-lock.json and Gemfile.lock as generated, so they don't skew the numbers.

Based on the files on main, the bar should end up at about Ruby 75%, TypeScript and TSX 16%, and CSS 8%. GitHub recalculates the bar a few minutes after this merges.

@royalpriest
royalpriest merged commit 961749f into main Nov 21, 2026
3 checks passed
@royalpriest
royalpriest deleted the chore/gitattributes branch November 22, 2026 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant