Repository navigation
Mark build output as generated for GitHub - #323
Merged
Merged
Conversation
GitHub collapses files marked linguist-generated in pull request diffs and leaves them out of the language statistics. Mark the files that build scripts write: - The build output of the Wasm workloads: workloads/*-wasm/build, Dart/build, dotnet/build-aot, dotnet/build-interp and transformersjs/build. The build.log next to each directory stays visible, since it records the toolchain and source versions. - The webpack output in the JavaScript workloads' dist directories. Their build directories hold hand-written build scripts and stay visible. - The project sources that typescript-lib's import script writes to src/gen. Git itself treats these files as before, and no file that JetStream loads changes.
✅ Deploy Preview for webkit-jetstream-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
camillobruni
approved these changes
Oct 29, 2026
Contributor
Author
|
Merging since this is not changing any workloads, just improving the review experience on GitHub. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub collapses files marked
linguist-generatedin pull request diffs and leaves them out of the repository's language statistics. This adds a.gitattributesthat marks the files that build scripts write:build.shwrites toworkloads/*-wasm/build/,workloads/Dart/build/,workloads/dotnet/build-aot/,workloads/dotnet/build-interp/andworkloads/transformersjs/build/. Thebuild.lognext to each of these directories stays visible, since it records the toolchain and source versions.npm run buildinworkloads/*/dist/(babylonjs, jsdom-d3-startup, mobx-startup, prismjs, typescript-lib, validatorjs, web-ssr, web-tooling-benchmark). Where these workloads have abuild/directory (babylonjs, jsdom-d3-startup, typescript-lib, web-ssr), it holds hand-written build scripts and stays visible.typescript-lib: the project sources thatbuild/import-src-project.mjswrites tosrc/gen/. The README there stays visible.Git does not use this attribute:
git diffandgit log -pshow these files as before, and no file that JetStream loads changes.On
main, the patterns match 174 of the 961 tracked files (346 of 486 MB). Rebuild PRs get much shorter: of the Wasm toolchain updates for #277, the .NET update would show 8 of its 58 files and the Emscripten rebuild 15 of its 36, namely the hand-written files and the build logs.Not marked: vendored files that no build script in the repository writes (such as the
tfjs-wasmbundles), and files that GitHub already detects as generated, such aspackage-lock.json, minified files and source maps.